I use Rails 3.0.3 and devise 1.1.5 (devise on github)
My User
model belongs_to
the Company
model with the foreign_key company_id
When a new User is created (at Sign Up), I need to associate him with a new company.
So, basically, I need to put the following code somewhere
@user.company = Company.new
@user.save
The user controller is manage in the devise dependency, is it possible to generate the controller used by devise in my app/controllers directory
Thanks