Ruby on Rails Discussions
saving second order association with ActiveRecord
rubyonrails-talk
August_Lilleaas
(August Lilleaas)
January 19, 2007, 10:11am
1
Yes =D
And if a book has_one :author, you can go
@book
= Book.find(1) and then
@book.author.new
.
Related topics
Topic
Replies
Views
Activity
Correct way to build an AR object with multiple associations?
rubyonrails-talk
2
157
December 18, 2008
[ActiveRecord] :order in has_many
rubyonrails-talk
0
222
February 1, 2007
How to deal with this code ?
rubyonrails-talk
6
181
September 9, 2009
has_one through with new record
rubyonrails-talk
0
134
February 18, 2009
best method to save-through to many-to-many
rubyonrails-talk
0
114
October 23, 2007