Sha256: 5218957e19a24facf52da5b85c63a727387baacc5eb478a4fdf6fa7aa94cfc6d

Contents?: true

Size: 187 Bytes

Versions: 29

Compression:

Stored size: 187 Bytes

Contents

<% for role in User::ROLES %>
  <%= check_box_tag "user[roles][]", role, @user.roles.include?(role) %>
  <%=h role.humanize %><br />
<% end %>
<%= hidden_field_tag "user[roles][]", "" %>

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
roles_active_record-0.3.2 lib/views/_multi_role_selector.erb.html
roles_active_record-0.3.1 lib/views/_multi_role_selector.erb.html
roles_active_record-0.2.5 lib/views/_multi_role_selector.erb.html
roles_active_record-0.2.4 lib/views/_multi_role_selector.erb.html
roles_active_record-0.2.3 lib/views/_multi_role_selector.erb.html
roles_active_record-0.2.2 lib/views/_multi_role_selector.erb.html
roles_active_record-0.2.1 lib/views/_multi_role_selector.erb.html
roles_active_record-0.2.0 lib/views/_multi_role_selector.erb.html
roles_active_record-0.1.0 lib/views/_multi_role_selector.erb.html