My model User contains only field hashed_password but not password and confirmed_password, which are requested to provide when registering. How should I write the view in this case? Following code will generate error Model User does not respond to password.
17: </div>
18: <div class="field">
19: <%= f.label :password %><br />
20: <%= f.text_field :password %>
21: </div>
But if it’s fot authentication problem, you should probably use some sort of libs, like authlogic or devise, both these library would provide you with this virtual attributes.