愚蠢的问题,我如何将我的代码重写为Haml格式?
<% for role in Role.find(:all) %>
<div>
<%= check_box_tag "user[role_ids][]", role.id, @user.roles.include?(role) %>
<%= role.name %>
</div>
请问在哪里可以找到haml示例,例如http://apidock.com/rails/ActionView/Helpers/FormTagHelper/check_box_tag? 谢谢!