Initial insert of data


i need to insert various records (system records) into various tables
after the initial login/creation of a new user. what would be the best
way of accomplishing that since i need to insert as well the user_id
in those tables too.


You could just call a model method from the controller.

You probably want to use after_create in your user model:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs