Rails 4: I am coming out of rails 3.2.x And I have a question. How to use Strong parameter without controller.
I have this model:
Track (the only one that has a Controller )
has_many :tracksegments, :dependent => :destroy
has_many :points, :through => :tracksegments
Tracksegment
belongs_to :track
has_many :points, :dependent => :destroy
points
belongs_to :tracksegment
The track is the only one that has a controller, so it has some powerful parameters.
I want to know where I can put the parameters belonging to "tracksegment" and "points". In Rails 3.x it is hidden in the model, but in rails 4 I do not have a controller for them.
source
share