简体   繁体   中英

Unable to generate friendly_id from gem

I'm trying to use Friendly ID to handle slugs in my Rails app. When I run "rails generate friendly_id", I get the following error:

/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require': no such file to load -- babosa (LoadError)

However, the babosa gem is definitely installed.

How can I even begin to solve this?

I was able to fix the problem by installing Bundler and adding the following lines to "Gemfile" in the root of my app:

gem 'babosa'

gem 'friendly_id'

I've not seen this problem myself, but have you tried the Google Group for the gem? It looks like that's the author's preferred communication method, and he looks to be fairly responsive there.

http://groups.google.com/group/friendly_id

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM