We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
unless user.is_admin?
return user.update_score
end
This is what I have so far. I've tried it without the return keyword and it doesn't run. I'm getting an error. It says that 'user' is undefined. I'm not sure what the problem is.
Ruby Control Structures - Unless
You are viewing a single comment's thread. Return to all comments →
This is what I have so far. I've tried it without the return keyword and it doesn't run. I'm getting an error. It says that 'user' is undefined. I'm not sure what the problem is.