devise icon indicating copy to clipboard operation
devise copied to clipboard

custom fields

Open komba opened this issue 15 years ago • 1 comments

admin = {:login => 'test_user', :email => '[email protected]', :password => 'password', :name => 'Test User'} a = Admin.new admin #<Admin id: nil, email: "[email protected]", encrypted_password: "$2a$10$8KvUqqtCnCYzIsECf2iG1.cf2/BlRlHWyK0jhhGhaqwg...", reset_password_token: nil, reset_password_sent_at: nil, remember_created_at: nil, sign_in_count: 0, current_sign_in_at: nil, last_sign_in_at: nil, current_sign_in_ip: nil, last_sign_in_ip: nil, created_at: nil, updated_at: nil, login: nil, name: nil>

why Devise don't want to save custom fields? Thank you in advance

komba avatar May 27 '11 08:05 komba

oops, I forgot about attr_accessible :login, :name.

Nevermind.

komba avatar May 27 '11 08:05 komba