Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Old style routes for Rails 3.1
Ruby
branch: master

This branch is 15 commits behind pixeltrix:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gemtest
.gitignore
CHANGELOG
Gemfile
LICENSE
README
Rakefile
rails_legacy_mapper.gemspec

README

== Rails Legacy Mapper
This gem provides an extraction of the DeprecatedMapper from Rails 3.0.
If you have a legacy application with an old style routes.rb file this
allows you to get your application running quickly in Rails 3.1.

=== Example
The trigger for using the legacy mapper is the arity (number of args)
of the block passed to draw, e.g:

  LegacyApp::Application.routes.draw do |map|

    map.root :controller => 'pages', :action => 'index'

    map.namespace :admin do |admin|
      admin.resources :pages
    end

    map.page '/pages/:id', :controller => 'pages', :action => 'show'

    map.connect '/:controller/:action/:id/'

  end

=== License
Copyright (c) 2011 Andrew White, released under the MIT license
Something went wrong with that request. Please try again.