class User < ActiveRecord::Base has_secure_password def editor? self.role == 'editor' end end
This is my code for this exercise ^ I've taken a look at this topic on the same exercise and I have the same code (well, not the same white space, but that shouldn't matter in Ruby) but it doesn't work. For the sake of trying, I tested out the whitespace shown in that exercise and that didn't work either. I went over the previous exercise over again as well. Also, I don't get error messages. It just says that it's wrong, like so:
Am I supposed to be getting error messages? Is there something I should be doing differently?