-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
When I attempt to define User model like below
class User
include Mongoid::Document
field :first_name, type: String
field :password, type: String
attr_protected :password # focus this
end
Then it throws the eroor NoMethodError of undefined method 'attr_protected'. Why?
Once I create new rails project through invoking command 'rails new blog_api --skip-active-record'