Jay Mittal
2006-Aug-23 13:45 UTC
[Rails] Displaying only that data which is associated to logged in u
Hi !! I am working on a project which allows users to keep track of the courses they are studying. My Question: I want to achieve that when user logs into the system he/she can only view those courses which he/she only added, so that no other users'' data is messed by someone else. For e.g. - There are 2 users, Jay and Cathy. Now, Jay has 5 courses he is studying and Cathy has 2 courses she is studying. So, when Jay logs into the system with his username/password he sees only his courses with no access rights to view any other or all courses in the system. A wide example of what I want is: del.icio.us ... when a user logs in he/she sees/control only his/her bookmarks. User can''t view/mess someone else''s bookmarks. I hope I am clear. How shall I achieve this ?? Can anyone, please give me an example or code to look into. Regards, Jay. -- 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 -~----------~----~----~----~------~----~------~--~---