I'm trying to get the current user by using the find method from the
I'm using restful authentication to handle session management.
The login page redirects to the user page, on successful log in, whose
code looks like this:
@user = User.find(:user_id)
However, I get the following error when I view the page:
PGError: ERROR: invalid input syntax for integer: "--- :user_id
: SELECT * FROM "users" WHERE ("users"."id" = E'--- :user_id
Any help is appreciated.
If it's not clear what I'm trying to do, I'm trying to get the current
user and then show all the associated records for that user. I haven't
gotten to the second part yet as the first has proven beyond my limited