Displaying 2 results from an estimated 2 matches for "butu25".
Did you mean:
butu
2010 Oct 01
8
field_with_errors.
If a model doesn''t pass validation the field in the view is put under
a <div class="field_with_errors">.
But who create that div? field_text helper do it?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2011 Feb 24
1
Rails 3 save parent model and association if nested attributes validation fails for uniqueness
Hi,
Song
has_and_belongs_to_many :people
accepts_nested_attributes_for :people
Person
validates :uniqueness => true
If person record not present, nested attributes working great! in rails way.
i.e., inserting into songs, people and people_songs table correctly.
I am interested in:-
*If there is person exist, it should skip insertion into people table but
data should be inserted in songs and