How to save the values of one model in another?

Posted by ragupathi on Stack Overflow See other posts from Stack Overflow or by ragupathi
Published on 2012-11-28T04:34:25Z Indexed on 2012/11/28 5:04 UTC
Read the original article Hit count: 123

I have user model and Language model where the language model contains different languages and i want the user to select the languages from that model and it should be stored for the corresponding user. Consider there are five languages A, B, C, D, E then the user has to select from the languages. Suppose user 1 selects A and C whereas user 2 selects B and D then the languages has to be stored for that user. How can i do this? please help me.

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby-on-rails-3