% content_for :headers do %> <%= stylesheet_link_tag "fcbkComplete.css", :media => "screen, projection" %> <%= javascript_include_tag 'jquery.fcbkcomplete.min', 'jquery.validate' %> <% end %> <% content_for :javascript do %> $(function() { $(".new_group").validate(); }); $("#group__participants").fcbkcomplete({ json_url: "<%= contacts_path(:format => :json) %>", cache: true, filter_case: true, filter_hide: true, newel: false, height: 6 }); <% end %> <%= location( link_to(image_tag("btn/btn_group.png", :class => "menu_icon")+t('group.other'), groups_path), link_to(image_tag("btn/btn_group.png", :class => "menu_icon")+t('group.new.action'), new_group_path('group' => { '_founder' => current_subject.slug })) ) %>
<%= form_for @group do |f| %> <% f.object._founder = current_subject.slug %> <%= f.hidden_field :_founder %> <% if @group.errors.any? %>