Sha256: 26fdb249bc3da14f30086cc6669435ea563a1dcc33fdeac72904955ef09028d7

Contents?: true

Size: 955 Bytes

Versions: 1

Compression:

Stored size: 955 Bytes

Contents

# Breadcrumble

Breadcrumble is a simple breadcrumb navigation plugin for Ruby on Rails 3.

## Installation

Add this line to your application's Gemfile:

    gem 'breadcrumble'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install breadcrumble

## Usage
In your controller, call `add_breadcrumb` to push a new element on the breadcrumb stack.

    class SampleController
    
      add_breadcrumb "home", home_url
      add_breadcrumb "sample", sample_url
      
      def index
        add_breadcrumb "index", index_url
      end
    
    end

In your view, you can render the breadcrumb menu with the `render_breadcrums` helper.

    <body>
      <%= render_breadcrumbs %>
    </body>

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
breadcrumble-0.0.1 README.md