Sign in through GitHub

RailsCasts Pro episodes are now free!

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"}"