search for: place_attribut

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

Did you mean: place_attributes
2012 Dec 04
2
[Rails 3.2] validation on create not working
...es :description, :uniqueness => {:case_sensitive => true, :on => :create } # also tried # validates :description, :uniqueness => {:case_sensitive => true }, :on => :create On update ( in form fields, updated label, same description ) params {"event"=>{"place_attributes"=>{"label"=>"a very beautiful place", "description"=>"where you should go..."}} @event.errors debugging @messages={:"place.description"=>["has already been taken"]}> !! uniqueness should not be checked ¿ thanks...
2012 Oct 09
0
Form Design issue - How to handle a parent association input..
I have an Event Model with a parent Place association class Event < ActiveRecord::Base belongs_to :place accepts_nested_attributes_for :place attr_accessible :place_attributes In a new event registration form, the 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 Pl...