0

我正在使用 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.
4

1 回答 1

1

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

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

于 2013-02-17T12:08:13.047 回答