Displaying 1 result from an estimated 1 matches for "tutorial_path".
2010 Jul 26
4
Changing the model_path.
...previous piece of code would link you to /
categories/CategoryPermalink; the trouble is I don''t want it to be /
categories, I just want it to be /PERMALINK.
Then I''m getting into even more trouble, as each category has_many
tutorials, I have to do the same with this. At the moment
tutorial_path(tutorial) makes it go to /tutorial/TutorialPermalink,
however I want it to go to /CategoryPermalink/TutorialPermalink.
Is there any way of doing this (at the moment I''m playing around with
routes.rb, and then changing the action, and controller in the link; I
don''t really know wh...