Frederick Cheung wrote:
> On Jul 21, 4:14�pm, Lily ^_^ <[email protected]> wrote:
>> I get the ID of test (the theme) and not of the lesson.
>>
>> Do you know how to get the id of the nested object instead ?
>>
> 
> if your join table has an id column weird stuff like this will happen
> 
> Fred


Thank you so much guys !!!

I forgot to remove the id in the join table creation migration file. So 
the join table had an incremential id and lessons.id was actually the 
join table line id (which was by chance the same as theme.id)... 
confusing.

I fixed it and it works perfect now. Thank you! I wouldn't have thought 
about checking this :S

Have a nice day
Lily
-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to