search for: event_form

Displaying 2 results from an estimated 2 matches for "event_form".

2009 Sep 24
4
Action Controller ::MethodNotAllowed
...age => :get}, :new => {:preview => :post, :publilsh => :post} The EventsController has functions for new, create, edit, update, manage, preview and publish. the new.html.erb snippet is <% form_for @event, :url => events_path, :html => {:multipart => true, :id => "event_form"} do |f| -%> <%= render :partial => "form", :locals => {:f => f} %> <%= link_to image_tag("/images/btn-cancel.png", :border => 0), dashboard_path, :style => "float:left;" %> <%= link_to_function image_tag("/images/btn-publi...
2010 Jun 24
0
Nested Model Forms
...er new action has ... @event_category.event_types.build @event_category.event_types[0].events.build Forms: event_categories/new.html.erb <% form ...... do |form| %> <% form.fields_for :event_types do |event_type_form| %> <% event_type_form.fields_for :events do |event_form| %> <% @time_units.each do |time_unit| %> <% name = time_unit.name; id = time_unit.id %> <%= event_form.check_box ''time_unit_ids[]'', { :id => name }, time_unit.id %> <% end %> undefined method `time_unit_ids[]&...