Showing 4 videos tagged with routes

The Powerful New Rails Router

In this week’s post, we’ll be looking at the new Routing API in Rails 3. Other than handling all the basic routes efficiently, the new DSL also has some nice advanced features baked in that every developer will sure appreciate. I have written about basic routing in Rails 3 over on the EngineYard blog before. This time, we’ll go through some of the more advanced examples of using routes. You’ll see how routes hook up with any Rack-compatible framework from a Rails application through routes... View More
Tags:

Railscast - Episode 46: Catch-all Route

00:05:58 railscasts.com
Sometimes you need to add complex/dynamic routes. This is often impossible to do in routes.rb, but do not worry. It can be accomplished with a catch-all route. See how in this episode.

Railscast - Episode 70: Custom Routes

00:07:05 railscasts.com
In this episode you will learn how to add custom routes, make some parameters optional, and add requirements for other parameters.

Railscast - Episode 79: Generate Named Routes

00:05:59 railscasts.com
This more advanced episode will show you how to dynamically generate named routes by adding a method to the map object.