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

Rails 2.3.x compatibility broken #10

Closed knightq closed 13 years ago

knightq commented 13 years ago

Since your gem requires "ActiveSupport::Concern" (module controller_mixin extends from that) that is present only from Rails 3.0...

How can I use your gem on Rails 2.3.x?

> ruby script/server 
=> Booting Mongrel
=> Rails 2.3.11 application starting on http://0.0.0.0:3000

.../ruby/1.8/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:182:in `require': no such file to load -- active_support/concern (MissingSourceFile)
from .../ruby/1.8/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:182:in `require'
from .../ruby/1.8/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:547:in `new_constants_in'
from .../ruby/1.8/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:182:in `require'
from .../ruby/1.8/gems/breadcrumbs_on_rails-2.0.0/lib/breadcrumbs_on_rails.rb:16
... *omissis*...
novemberkilo commented 13 years ago

Hi - we've got breadcrumbs_on_rails working on a Rails 2.3.10 app - you need v1.x of the gem though. Put the following in your Gemfile:

gem "breadcrumbs_on_rails", "~>1.0"
weppos commented 13 years ago

BreadcrumbsOnRails 2.x requires Rails 3. Use BreadcrumbsOnRails 1.x with Rails 2.