Day: May 5, 2020

Ruby nil, && operand, and no method error

I wanted to show a link in a Rails application based on whether a person was current_user.admin? and signed_in? The code looked something like this: That would work when I was signed in but as soon as I signed out, I’d get a no method error. That happens because when

Read More »