nigelramsay / breadcrumb_trail
- Source
- Commits
- Network (3)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
6b074e5
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | Mon Apr 06 20:23:58 -0700 2009 | |
| |
README | Mon Jul 28 01:15:15 -0700 2008 | |
| |
Rakefile | Mon Jul 28 00:31:05 -0700 2008 | |
| |
init.rb | Mon Jul 28 00:50:58 -0700 2008 | |
| |
install.rb | Mon Jul 28 00:31:05 -0700 2008 | |
| |
lib/ | Mon Nov 17 19:56:20 -0800 2008 | |
| |
public/ | Mon Nov 17 19:56:20 -0800 2008 | |
| |
test/ | Mon Jul 28 00:57:59 -0700 2008 | |
| |
uninstall.rb | Mon Jul 28 00:31:05 -0700 2008 |
README
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
