Rails List wrote: > Rails List wrote: >> An User can have many applications and an App can have many users. So I >> would think... >> >> class App < ActiveRecord::Base >> has_and_belongs_to_many: users >> end >> >> class User < ActiveRecord::Base >> has_and_belongs_to_many: apps >> end > > let me know how it goes > > http://www.craigslistcloned.com
yes, thats correct. but i'm going to add one more field called permission in the join table. so used has_many :through -- 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 -~----------~----~----~----~------~----~------~--~---

