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.5.1 lib/views/_multi_role_selector.erb.html
roles_active_record-0.5.0 lib/views/_multi_role_selector.erb.html
roles_active_record-0.4.9 lib/views/_multi_role_selector.erb.html
roles_active_record-0.4.8 lib/views/_multi_role_selector.erb.html
roles_active_record-0.4.7 lib/views/_multi_role_selector.erb.html
roles_active_record-0.4.6.4 lib/views/_multi_role_selector.erb.html
roles_active_record-0.4.6.3 lib/views/_multi_role_selector.erb.html
roles_active_record-0.4.6.2 lib/views/_multi_role_selector.erb.html
roles_active_record-0.4.6.1 lib/views/_multi_role_selector.erb.html
roles_active_record-0.4.6 lib/views/_multi_role_selector.erb.html
roles_active_record-0.4.5 lib/views/_multi_role_selector.erb.html
roles_active_record-0.4.4 lib/views/_multi_role_selector.erb.html
roles_active_record-0.4.3 lib/views/_multi_role_selector.erb.html
roles_active_record-0.4.2 lib/views/_multi_role_selector.erb.html
roles_active_record-0.4.1 lib/views/_multi_role_selector.erb.html
roles_active_record-0.4.0 lib/views/_multi_role_selector.erb.html
roles_active_record-0.3.6 lib/views/_multi_role_selector.erb.html
roles_active_record-0.3.5 lib/views/_multi_role_selector.erb.html
roles_active_record-0.3.4 lib/views/_multi_role_selector.erb.html
roles_active_record-0.3.3 lib/views/_multi_role_selector.erb.html