Forum: Ruby on Rails RE: What is best way to show only records belonging to logge

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
60e38de043848f82392062088f191213?d=identicon&s=25 Hogan, Brian P. (Guest)
on 2006-02-02 19:44
(Received via mailing list)
When I do this, I store the after a successful login. user's id in
session. My controller actions pass that id into the find method

@tasks = Task.find_all_by_user_id(session[:user_id])

The session would have to be hacked in order for that to be broken. It's
been secure enough for me.
This topic is locked and can not be replied to.