This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | Tue Jun 17 01:32:23 -0700 2008 | [fesplugas] |
| |
README | Tue Jun 17 01:39:13 -0700 2008 | [fesplugas] |
| |
Rakefile | Tue Jun 17 01:04:41 -0700 2008 | [fesplugas] |
| |
init.rb | Tue Jun 17 01:32:12 -0700 2008 | [fesplugas] |
| |
lib/ | Tue Jun 17 01:32:44 -0700 2008 | [fesplugas] |
README
== Simplified Breadcrumbs
A nice way to add breadcrumbs to your application. Antonio Cangiano posted a
link in the Ruby on Rails weblog to a post which talked about adding breadcrumbs
to your Rails application. I've been doing this with helpers, but as the post
says this is "Easy and flexible". So I've created the plugin.
== Example
##
# app/controllers/application.rb
#
class ApplicationController < ActionController::Base
add_breadcrumb 'Home', '/'
end
##
# app/controllers/things_controller.rb
#
class ThingsController < ApplicationController
add_breadcrumb 'Things', 'things_path'
add_breadcrumb 'Create a new thing', '', :only => [:new, :create]
add_breadcrumb 'Edit a thing', '', :only => [:edit, :update]
def show
@thing = Thing.find(params[:id])
add_breadcrumb @thing.name, ''
end
end
##
# app/views/layouts/application.html.erb
#
<%= breadcrumbs %>
<%= breadcrumbs("=>") %> <!-- You can define the separator you want -->
== Acknowledgments
- Przemyslaw Kowalczyk for his post http://szeryf.wordpress.com/2008/06/13/easy-and-flexible-breadcrumbs-for-rails/
Copyright (c) 2008 Francesc Esplugas Marti, released under the MIT license



