January 2011
2 posts
7 tags
Rails 3 and Nested Forms
When developing nested forms in Rails you need to tell each model what their relation is with other models, like this:
What I didn’t know is that you also need to manually declare the attributes relation to accessible, when you are already using attr_accessible in the related model(s). (Thanks dixis for the comment).
Read more about it here:...
4 tags
Formtastic & ValidationReflection in Rails 3
When using Formtastic and ValidationReflection make sure the validations on your Models are split up in the different validation methods of ActiveRecord.
Like this:
instead of