<% content_for :head do %> <%= javascript_include_tag 'jquery.ui.autocomplete' %> <%= stylesheet_link_tag 'jquery.ui.autocomplete' %> <% end %>
<%= form_for(@groups_user, :html => {:class => 'form-horizontal'}) do |f| %> <%= f.hidden_field :group_id, :value => @group.id %>
<%= f.label 'Gruppe', :class => 'col-sm-2 control-label' %>

<%= @groups_user.group.name %>

<%= f.label :user_email, 'Benutzer E-Mail', :class => 'col-sm-2 control-label' %>
<%= text_field_tag :user_email, nil, :class => 'form-control' %>
<%= f.submit "Benutzer hinzufügen", :class => 'btn btn-primary' %>
<% end %>