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

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Hogan, Brian P. (Guest)
on 2006-02-02 20: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.