I'm reading and learning from the Rails tutorial at  but not building the sample application instead I'm trying to build my own. After generate all the migration and build the main classes for Models I made some modifications to them in order to build relationship between tables now I think that I need to run some command to generate the scaffold again with proper relations, exists such command? I'm lost
If I understand well, the scaffold for the views will not automatically build
forms that work with related tables (it will simply show the "parent_id").
At a certain point, you have to start building your own forms.You might
look at "simple_form" with associations to handle forms with associations.
The first mistake any rails tutorial does is to teach how to scaffold.
Only when you write the classes and views yourself, you'll understand
what they exactly do.
I suggest that you should work right through the tutorial exactly as
written first. Then start with your own app. In this case for
example the tutorial will show you how to add further fields to
database and views, after scaffolding, so you will know how to do it