ruby - Creating a shortlist in rails -


i have generic question how create shortlist in rails.

what have user , job model users can register , create/edit jobs etc. enable users add jobs interested in "shortlist" can come them - want add these shortlisted jobs user dashboard.

i wondering best way implement setup this? best create seperate controller shortlists , make nested resource of users , link jobs table shortlist table in database?

would great ideas has implemented before?

thanks! :)

if i'm understanding correctly, sounds want has_and_belongs_to_many relationship here far modeling goes -

user:

has_and_belongs_to_many :shortlisted_jobs, :class_name => 'job' 

job:

has_and_belongs_to_many :shortlisting_users, :class_name => 'user' 

as far controller setup, put job crud jobscontroller, isn't namespaced, , add needed actions manipulating particular user's shortlist userscontroller.

the 1 assumption i'm making me, user in app, can add job created shortlist. if case, set how described.


Comments

Popular posts from this blog

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -