Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Will Sommers's Profile

GitHub User: Will-Sommers

Comments by Will Sommers

Avatar

I know this sounds stupid by why not add a class and forget the js.

ruby
class ="#{current_user.is_admin? ? "" : "hide"}"