I have a simple user model that stores an email address, crypted_password, salt and some tokens/timestamps for password recovery.
I would like to also have a more robust profile table using a has_one :user relationship. This would store things like weight and track change over time. It would also be used to store static information like height, or name.
I already have an resource for editing a user /users/1/edit where you can update your email address and password. Is it possible to have one /profile/1/edit page where you could edit your profile, update your weight AND change your user information with one save button?
Thanks.
When you want to handling multiple models in a single form then you should use something called nested form. I think the best way to learn this topic is by watching this railscast:
http://railscasts.com/episodes/196-nested-model-form-part-1