[Rails] Re: create new object in nested model
Thank you
But i have another problem:
How to use render(association.to_s.singularize , :f => builder)
when the partial is
in a diffrent folder ?
in the view there are 3 folders: 'tests', 'questions', 'answers'.
so in '_form' in folder-'question' when there is a call to-
link_to_add_fields("Add Answer", test_form, :answers)
i get the error-
missing partial 'tests/answer_fields'.
it need to be:
- 'answers/answer_fields'
what i need to change?
--
Posted via http://www.ruby-forum.com/.
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home