开发者

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/activesu开发者_如何学JAVApport-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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜