koloa
2006-Aug-23 14:10 UTC
[Rails] Re: Displaying only that data which is associated to logged
i plan on doing something similiar. it seems like there is a simple relationship where you would have a table titled users that is linked to another with a has_many relationship to a table titled courses. where after sombody logins, that grants them access to the controller that selects all courses where id == user id. i think also you may need to store a session in a file to let your code know that only the user that is logged in only can view and modify where his name matches up with whatever is in the row. do a search for login generator "ruby on rails". other than that, it may just be simple sql statements. -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---