Regarding issue 1, you have a typo: change validate
to validates
.
Regarding issue 2:
You generally start the console from the root of your project like this:
$ rails c
You are doing Ref_User_Category.new
when you should do RefUserCategory.new
.
About User.new
, it looks like you haven't run your database migrations:
$ rake db:migrate
$ rake db:test:prepare