search for: simple_fields_for

Displaying 3 results from an estimated 3 matches for "simple_fields_for".

2011 May 03
0
Simple_Form and Simple_Fields_For and working in Form_Tag, Fields_For
...ag(update_individual_photos_path, :method => "put") do %> <%= fields_for "photos[]", @photo do |f| %> ................. <% end -%> <%= submit_tag("Post") %> <% end %> But i would like to move to doing this with simple_form_for and simple_fields_for but i cant get it working. Looks like simple_fields_for cant work with "photos[]", @photo ? Is it possible to call Simple_Fields_For with the same syntax as Fields_For ? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group....
2011 Jul 25
1
3 models in a form.
...livery < ActiveRecord::Base has_many :delivery_items has_many :products, :through => :delivery_items belongs_to :customer class DeliveryItem < ActiveRecord::Base belongs_to :delivery belongs_to :product I create a new delivery for customer x: = simple_form_for @customer do |f| = f.simple_fields_for :deliveries do |deliveries_f| .block .column.span-12 = deliveries_f.association :products, :multiple => true, :selected => @products_selected_id, :input_html => { :title => "- Select product -" }, :label => false = del...
2012 Oct 09
0
Form Design issue - How to handle a parent association input..
...e user should have the choice to : - select from an existing Place - enter a new Place in a nested form = simple_form_for @event = f.association :place, :collection => Place.all(:order => ''label''), :prompt => "Choose an Place", :label => false .. = f.simple_fields_for :place do |pf| #geolocation.form-inputs = pf.simple_fields_for :geolocation do |g| = render "backoffice/places/ geolocation_fields", :f => g should I manage that with a jQuery script ? - when user select a place , it will clear the ne...