Ruby on Rails
Monday, January 20, 2014
Hi walter, thanks for answering question.
-- I've read about polymorphic relationships and I've tried it before, but in my case, I should use database which is already used in other project and I make new rails app with the database. so I can' t change database structure easily.
2014年1月17日金曜日 23時25分24秒 UTC+9 Walter Lee Davis:
2014年1月17日金曜日 23時25分24秒 UTC+9 Walter Lee Davis:
Have you read anything about polymorphic relationships yet? That's a good place to start. Rails Guides, ActiveRecord Relations, read the whole page, but pay attention to the section on Polymorphism.
Walter
On Jan 17, 2014, at 4:55 AM, Takashi Nakagawa wrote:
>
>
> --
> 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-ta...@googlegroups.com .
> To post to this group, send email to rubyonra...@googlegroups.com .
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ .ecc2d9dd-fb18-4248-a50c- 4fa9c36721b1%40googlegroups. com
> For more options, visit https://groups.google.com/groups/opt_out .
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/6e224b17-820d-451e-be23-96b70cbeabf6%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment