Skip to content

Adds breadcrumbs to twitter-bootstrap-rails #136

Merged
merged 3 commits into from Mar 13, 2012

2 participants

@ji
ji commented Mar 7, 2012

Usage.

Add this to Your application_layout.html.erb:

<%= render_breadcrumbs %>
<%= yield %>

Add this to Your controller (i.e. ProductsController):

add_breadcrumb "New Product", "/products/new", only: [:new, :create]

That's it.

@ji
ji commented Mar 8, 2012

Sorry, forgot to push that one before i made the pull request.

@seyhunak seyhunak merged commit cdeb008 into seyhunak:master Mar 13, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.