Reputation: 21
I am a ruby-newbie following along with the Ruby on Rails Tutorial by Michael Hartl. In chapter 6 we are creating validation rules for our User model and manual testing in the console sandbox. When I change a rule in my model, it is not reflected in the console tests. i.e. saving a new user with no name is allowed even though I just created that validation in my model.
validates :name, presence:true
If I exit the console and then restart the console, everything works as expected. Is there another way to refresh or am I doing something wrong altogether?
Upvotes: 2
Views: 346