You are viewing a single comment's thread. Return to all comments →
You are right. This method is already defined. But it looks like you're using "User.is_admin?" instead of "user.is_admin?".
Seems like cookies are disabled on this browser, please enable them to open this website
Ruby Control Structures - Unless
You are viewing a single comment's thread. Return to all comments →
You are right. This method is already defined. But it looks like you're using "User.is_admin?" instead of "user.is_admin?".