Preksha Patel wrote: > Saurabh Peshkar wrote: >> Have you written >> >> in user.rb >> >> has_one :club >> >> Saurabh > > yes because there is one-to-one relationship between this two model and > user_id is foreign key in club table..
in your shared user.rb, I hadn't seen that line hence I asked you. -- 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 rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---