Agile Web Development

Build it. Launch it. Love it.

Routing Navigator

This plugin installs a handy routing navigator at the bottom of each page, showing all available routes and named routes. The navigator is only available in development mode. You can turn it on or off in a controller by using the given method:

  class FooController < ApplicationController
    routing_navigator :off # turns the routing navigator off completely
    routing_navigator :only   => [:show, :edit]
    routing_navigator :except => [:create, :update, :destroy]
  end

This plugin currently requires Edge Rails because it uses the new and improved Routing system.

INSTALLATION

The routing_navigator js and css files should be copied to public upon plugin installation. If not, run the available rake task to update.

  rake update_routing_navigator

You must include these on your pages for the styling to look correctly. You may need to tweak them to work with your site layout, however.

    <%= javascript_include_tag 'routing_navigator' %>
    <%= stylesheet_link_tag 'routing_navigator' %>

Vitals

Home http://blog.caboo.se/articles/2006/06/19/new-plugin-routing-navigator
Repository http://svn.techno-weenie.net/projects/plugins/routing_navigator/
License Rails' (MIT)
Tags Tag_red routing snix
Rating (9 votes)
Owner Rick Olson
Created 19 June 2006

Comments

  • Luke
    6 September 2007

    Note that "Edge Rails" is now the 1.2 branch, so it'll work fine there.

  • James B. Byrne
    26 March 2008

    Note that this plugin throws an error with Rails 2.0.2.

    undefined method `template_root=' for RoutingNavigatorController:Class

Add a comment