Editing group: <%= h @group.name %>

<%= form_for(@group) do |f| %> <%= f.error_messages %>

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

<%= f.submit "Update" %>

<% end %>
<% # TODO fixaa tämä @group.groupers.each do |grouper| %> <%= form_for grouper do |g| %> <% end %> <% end %>
Username Real Name Task Options
<%= namelink grouper.user %> <%= h grouper.user.realname %> <%= g.text_field :task, :size => 20 %> <%#= link_to_function "Update", "$('edit_grouper_#{grouper.id}').submit()" %> <%#= link_to "Update", group_path(@group, grouper => { :task => "truc" }), :method => :put %> <%= g.submit "Update" %> <%= link_to "Remove", grouper, :method => :delete %>
<%= form_for @group.groupers.build do |f| %> <%= f.hidden_field :group_id %>

Add a <%= link_to_function 'user', "findUser('username')" %>: <%= f.text_field :username %>

<%= f.label :task %> <%= f.text_field :task %> <%= f.submit "Add" %>

<% end %>
<%= link_to 'Show', @group %> | <%= link_to 'Back', groups_path %>