Displaying 1 result from an estimated 1 matches for "categorypermalink".
2010 Jul 26
4
Changing the model_path.
Hi,
I''m new to RoR, but currently need to make some changes to my site to
implement permalinks.
Whenever I do a link, I use: category_path(category) and then the
to_param permalinks it. The 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,
how...