weppos / breadcrumbs_on_rails

A simple Ruby on Rails plugin for creating and managing a breadcrumb navigation.
https://simonecarletti.com/code/breadcrumbs-on-rails
MIT License
944 stars 188 forks source link

Separator displays options hash #38

Closed stewartknapman closed 11 years ago

stewartknapman commented 11 years ago

Unsure what is causing this or if its a conflict with something else going on in my app. However in development the options that are being passed to render_breadcrumbs are being displayed in the view. I have been unable to find anything on the web about this issue.

Development Env:

<%= render_breadcrumbs :separator => "&raquo;" %>

results in the following: Screen Shot 2012-12-12 at 12 26 37 PM

Production (hosted on heroku) shows correctly: Screen Shot 2012-12-12 at 12 32 51 PM

The second part to this is that you will notice from the screenshots that development renders the bootstrap styled breadcrumb without a specified builder however the production environment does not. A bootstrap builder must be specified for production but not development?

stewartknapman commented 11 years ago

Turns out that your gem was being overridden by the twitter-bootstrap-rails gem. In development the bootstrap gem won, yet in production yours did. Strange...

[edit] It was different because the twitter-bootstrap-rails gem was inside the assets block in my gemfile. So it was not being used in production.