Mercurial > hg > soundsoftware-site
view app/views/users/_groups.rhtml @ 8:0c83d98252d9 yuya
* Add custom repo prefix and proper auth realm, remove auth cache (seems like an unwise feature), pass DB handle around, various other bits of tidying
author | Chris Cannam |
---|---|
date | Thu, 12 Aug 2010 15:31:37 +0100 |
parents | 513646585e45 |
children | 94944d00e43c |
line wrap: on
line source
<% form_for(:user, :url => { :action => 'edit' }) do %> <div class="box"> <% Group.all.sort.each do |group| %> <label><%= check_box_tag 'user[group_ids][]', group.id, @user.groups.include?(group) %> <%=h group %></label><br /> <% end %> <%= hidden_field_tag 'user[group_ids][]', '' %> </div> <%= submit_tag l(:button_save) %> <% end %>