Ruby on Rails
Tuesday, August 19, 2014
Marius.. not instead of :sublesson_id. You need to add the :id attribute in addition to the other nested attributes.
-- Btw, :id is generated as a hidden field by fields_for. Check here: http://apidock.com/rails/ActionView/Helpers/FormHelper/fields_for
Thanks!
On Tuesday, August 19, 2014 3:37:55 PM UTC+5:30, Ruby-Forum.com User wrote:
On Tuesday, August 19, 2014 3:37:55 PM UTC+5:30, Ruby-Forum.com User wrote:
Thanks Steve, but now is give me error message...i write :id instead of
sublesson_id ...This :id where do he come from from?
Thanks!
--
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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/c8043452-35c1-44a4-9dfc-42828655f9bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment