2012-01-11 25 views

Respuesta

11
- for role in Role.find(:all) 
    %div 
    = check_box_tag "user[role_ids][]", role.id, @user.roles.include?(role) 
    = role.name 

acabo de utilizar http://html2haml.heroku.com/

+0

Gracias hombre! ¡Esto funciona! –

0

Tal vez no sea demasiado tarde, pero siempre se puede ejecutar el comando html2haml. Algo como: html2haml app/views/layout/application.html.erb app/views/layouts/application.html.haml

+0

Gracias! ¡Lo intentaré! –