Matt Jones wrote:
> 
> - finally, while what you're asking about was possible in older
> versions of Rails
> (but seriously deprecated since about 2.0), I believe that the support
> has been
> removed from 2.3. The best practice now is to use a join model with
> has_many :through.
> Message me if you're not sure how to set that up.
> 
> --Matt Jones
> 
> On Feb 19, 2:17?am, Preethi Sivakumar <rails-mailing-l...@andreas-

Thanks for your tips Jones.

So, do you mean to say that, if I want to use a join model i've to use 
it using
has_many and through relationship?
if I'm not wrong, should it be like this?
----------------------------------------------------
Model Profile
has_many :users, through=>profile_user_mapping
Model Users
has_many :profiles, through=>profile_user_mapping

Model ProfileUserMapping
belongs_to :profile
belongs_to :users
---------------------------------------------------

and one more question, is it not a good practice to use a mapping table 
without a model? should i use it only using has_many :through 
relationship?
-- 
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