Skip to content

nigelramsay/breadcrumb_trail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Breadcrumb Trail
================

Adds a breadcrumb trail to your Rails application.

In your action:

  add_crumb :label => 'Admin', :link => administrators_path
  add_crumb :label => 'Users', :link => admin_users_path
  add_crumb :label => @user.name

In your layout or view:

  <%= crumbs %>
  
Generates something like:

<ol class="breadcrumb">
  <li class="first"><a href="/">Home</a></li>
  <li><a href="/administrators">Admin</a></li>
  <li><a href="/admin/users">Users</a></li>
  <li>Nigel Ramsay</li>
</ol>

Style
-----

You should use CSS to style the breadcrumb trail. See the example in public/stylesheets.

Copyright (c) 2008 Able Technology Limited (http://www.abletech.co.nz/blog), released under the MIT license

About

Rails plugin to create a breadcrumb trail

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages