I am a newbie in Rails and I am just trying to learn. I have this list
that lists all records from a table:
@pass = Pass.find :all
Now, I want to list only the records that belongs to the specific user
that is logged on.
The table passes contain a column named 'userid', which is
automatically entered when the user post a message in the passes
I try with:
@pass = Pass.find_all_by_userid(params[userid])
but this will only render an empty list.
Suggestions anyone ? What am I doing wrong ?