Redirect Routing plugin

Plugin details

This plugin lets you do simple redirects straight from your routes.rb

Websitehttp://pinds.com/articles/2006/07/18/release-redirect-routing-plugin-for-rails Repositoryhttp://svn.pinds.com/rails/plugins/redirect_routing/ Author Lars Pind Tags redirect, http LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install http://svn.pinds.com/rails/plugins/redirect_routing/

This will make the root of your site redirect to the events controller, typically at /events.

You can redirect any URL to any set of options, or event a string URL, like this:

    map.redirect 'test', 'http://pinds.com'


GET /test, and you'll be redirected to my blog.

You can also set the status to be a 301 permanent redirect instead of a temporary 302:

    map.redirect 'oldurl', 'newurl', :permament => true
    map.redirect 'oldurl', :controller => 'new_controller', :action => 'new_action', :permament => true

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: hardway, 7 months ago