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:
>
> 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 [email protected].
To post to this group, send email to [email protected].
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.

Reply via email to