Ruby on Rails
Wednesday, December 5, 2012
Hey guys… beginner question here so hopefully it's an easy and quick answer.
Is it possible to create associations via scaffolding? Say I have an Artists model and a Song model and I want song to have an artist_id. Can I create that via the scaffold command? Or would I scaffold like normal for both Artist an Song and the add in the column and index for artist_id to Song?
Thanks
Dan
--
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 https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment