#routes
5 posts tagged routes. Clear filter
-
How To Add A Route With A Forward Slash in Params with Rails 3 Application
Use an asterisk in the pattern to match for everything after it. In the example below, date will be available in the params hash as params[:date].
-
Renaming Routes in Rails 3 with :As and :Controller
Renaming routes in Rails 2.\ is straight forward. It goes something like this. This will give you users\path and form\for(User.new) helpers, for instance, mapping the url to /members instead of...
-
Scope Routes/URLs By Username (like Twitter) in Your Rails Application
There are a few things that need to be taken care of before you can get this to work. The first thing (although, any of the following steps can be done in any order) to take care of involves your...
-
How to Use Pretty URLs with Rails will_paginate Plugin
The will\paginate plugin for Rails uses a key/value assignment like ?page=2, rather than the pretty url formats such as /page/2 ... This is because url generation and mapping are handled by the...
-
Namespacing in Rails
With namespace routes in Rails you can easily create a prefix for select resources. For instance, if you have an admin area or an account dashboard you can give logged in users access to methods...