I'm trying to create a form to create a user. Currently I have
- form_for @user do |f|
= "Username"
%br
= f.text_field :username
%br
= "Password"
%br
= f.text_field :password
%br
= "Confirm Password"
%br
= f.text_field :password_confirmation
%br
= "Email"
%br
= f.text_field :email
%br
= f.submit "Submit app"
I keep getting the error undefined method 'password' for #<User:0x8e20750>
User does have a method password=, but because I'm encrypting the password before I store it, there is no password method. Anyone have a work around or a fix?