Generic roles

<% Cbac::GenericRole.find(:all).each do |role| %> <% form_for role do |r| %> <% end %> <% end%>
Name Remarks  
<%= r.text_field :name %> <%= r.text_field :remarks, :rows => 1 %> <%= r.submit "OK" %>
<% form_for(Cbac::GenericRole.new) do |new_role| %> <% end %>
New generic role
Name <%= new_role.text_field :name %>
Remarks <%= new_role.text_field :remarks %>
<%= new_role.submit "Create" %>
<% form_tag(:controller => "cbac/generic_roles", :action => "delete") do |f| %> <% end %>
Delete generic role
Select role <%= select_tag "id", Cbac::GenericRole.find(:all).collect{|role|""} %>
<%= submit_tag "Delete" %>