RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: danvoell
The error I get is "Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id"
This a newbie question:
I am getting an error if the user is not logged in. How do you enforce signup if they want to vote, while still allowing them to look at the page if they haven't signed up?