title: Want to show my index view to non-logged in users
body: <p>So I don't apply an authenticate filter to my index action, but non-logged in users are still unable to access the index view because of this line: <code>:class =&gt; "up_arrow #{current_user.votes_for(video).value == 1 ? 'voted' : 'unvoted' }"</code> which determines whether or not a button should be styled depending on whether the user has voted on the element. However, since <code>current_user</code> is not defined for a logged out user, accessing the page brings up an error. I don't want this to happen. How can I fix this so that if <code>current_user</code> is nil, the user can still view the page, and the button receives the class <code>'unvoted'</code>?</p>