You Must Read This Lesson About Relationships
It is very easy to declare associations in Rails. In app/models/user.rb you can do something like this:
has_one :user_profile
Your user profile is another object with its own table. Just make sure that it has the foreign key user_id , and you are good to go (you should also specify belongs_to :user in your user profile model).
Now, using Devise, if you want to make sure that the profile is created after user registration, you can do something like this (still in your user model):
after_create :create_child
And then, if you want to associate a specific URL with the controller, see the routing guide
Hope this helps.
source share