I created two models in the Rails application, and made their relationship through the declaration in the classes and in the database as well. I added the configuration to activate the nested resources in the routes file, the routes were created but they do not work the way they should, I'll put the example below:
Model Project
has_many :steps
Model Steps
belongs_to :project
resources :projects do
resources :steps
end
However, when I hit url / projects / 1 / steps it always falls into the index action of the Steps controller, which returns a Steps.all.
The correct way to do this, is just rewriting the same index action ??