Plugins - Routing Navigator

StarAdd to favorites

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' %>

Rick Olson

http://blog.caboo.se/articles/2006/06/19/new-plugin-routing-navigator

http://svn.techno-weenie.net/projects/plugins/routing_navigator/

Rails' (MIT)

  • Currently 4.4/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Controllers

Tags

Comments

Add a comment
James B. Byrne 26 Mar 2008
Note that this plugin throws an error with Rails 2.0.2. undefined method `template_root=' for RoutingNavigatorController:Class
Luke 6 Sep 2007

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

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?