I have a CourseQuestion
model in my app.
I use redirect_to @discussible
in my controllers, where @discussible
could be of different class (therefore redirect is to a different URL).
But I need to redirect CourseQuestion
models to question_path
, not course_question_path
which is default.
I don't need to change routes (routes are fine), just need rails to deduce specific named path for a model.
Any good way to do that?