I want to change the name in
I have one controller called
I am using another one which have same function as wiki named called FAQ which I don't have a controller.
usually the URL looks like
I have another button called FAQ. When I click this link, the URL want to change like
but in the background the controller is wiki but the display URL must be the above.
You can create non-restfull routes like this:
get 'courses/:course_id/FAQ/:id', controller: 'wiki', action: :show
You can access the route by doing a
GET request on
/courses/1/FAQ/front-page, it will hit your
You can retrieve the variables with
More details on non-restfull routes here