Topic: Rewriting URL's
I want to create nice URL's that use the page name instead of the row id. Basically instead of this:
instead of this:
The reason I want to do this is because it makes nicer URL's and because my database contains an active column that denotes whether or not the row is selected for display. To explain this a little better, this is how the db works:
When you update a page, the db will change the active column from 1 to 0 in the existing entry and add the new entry with an active state of 1. This allows us to maintain all updates for comparison, roll backs and so on.
I assume it will be a change in routes.rb. This will be the same for all other controllers as well (some will chow the course_code row instead of name and so on though).