如何安装gem'meta-where'? “捆绑安装”时出错

时间:2013-02-17 12:02:08

标签: ruby-on-rails

我正在使用Rails 3.2.9版本

我的宝石文件

source 'https://rubygems.org'

gem 'rails', '3.2.9'
gem 'feedzirra'
gem "meta_where"

gem 'sqlite3'

group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'

  gem 'uglifier', '>= 1.0.3'
end

gem 'jquery-rails'

我在捆绑安装时遇到如下错误。如何安装meta-where gem?

Bundler could not find compatible versions for gem "arel":
  In snapshot (Gemfile.lock):
    arel (3.0.2)

  In Gemfile:
    meta_where (~> 1.0.4) ruby depends on
      arel (~> 2.0.7) ruby

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

1 个答案:

答案 0 :(得分:1)

Meta_where适用于rails 2 - 您正在使用rails 3。

meta_where GitHub页面https://github.com/ernie/meta_where表示你应该使用squeel而不是https://github.com/ernie/squeel