<%= form_for(@forum) do |f| %>

<%= f.label :title %>
<%= f.text_field :title %>

<%= f.label :description %>
<%= f.text_field :description %>

<%= f.label :category %>
<%= f.select :category_id, Category.domain(Category::DOMAIN_FORUMS).ordered.collect{|c| [c, c.id]} %>

<%= f.submit 'Save' %>

<% end %>
<% unless @forum.new_record? %>

Access Rights

If no groups are specified, everyone is allowed for the specific access type. <% @forum.forumers.each do |forumer| %> <%= form_for forumer do |g| %> <% end %> <% end %>
Group Access Level Options
<%= namelink forumer.group %> <%= g.select :access, forumer.accesses.invert, :size => 20 %> <%= link_to_function "Update", "$('edit_forumer_#{forumer.id}').submit()" %> <%= link_to "Remove", forumer, :method => :delete %>
<%= form_for @forum.forumers.build do |f| %> <%= f.error_messages %> <%= f.hidden_field :forum_id %>

<%= f.label :group_id %>
<%= f.select :group_id, Group.all.collect{|g| [g, g.id]} %> <%= f.select :access, f.object.accesses.invert, :size => 20 %> <%= f.submit "Add" %>

<% end %>
<% end %>