-1

Rails アプリの水族館の構文に問題があります。プッシュしたgithubリポジトリからクローンしたアプリで、正常に動作していました。更新をプッシュしているのは私だけです

========================

これは、Rails s を実行しようとしたときに表示されるエラーです。

/Users/jcollyer/.rvm/gems/ruby-1.9.3-p327/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:239:requirerequire': /Users/jcollyer/.rvm/gems/ruby-1.9.3-p327/gems/aquarium-0.3.0/lib/aquarium/aspects/exclusion_handler.rb:34: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n' (SyntaxError) when String: type_or_object.name.eql?(t) ^ /Users/jcollyer/.rvm/gems/ruby-1.9.3-p327/gems/aquarium-0.3.0/lib/aquarium/aspects/exclusion_handler.rb:35: syntax error, unexpected keyword_when, expecting keyword_end when Symbol: type_or_object.name.eql?(t.to_s) ^ /Users/jcollyer/.rvm/gems/ruby-1.9.3-p327/gems/aquarium-0.3.0/lib/aquarium/aspects/exclusion_handler.rb:36: syntax error, unexpected keyword_when, expecting keyword_end when Regexp: type_or_object.name =~ t ^ /Users/jcollyer/.rvm/gems/ruby-1.9.3-p327/gems/aquarium-0.3.0/lib/aquarium/aspects/exclusion_handler.rb:37: syntax error, unexpected keyword_else, expecting keyword_end else type_or_object == t ^ /Users/jcollyer/.rvm/gems/ruby-1.9.3-p327/gems/aquarium-0.3.0/lib/aquarium/aspects/exclusion_handler.rb:61: syntax error, unexpected keyword_end, expecting $end from /Users/jcollyer/.rvm/gems/ruby-1.9.3-p327/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:239:inのブロック内 /Users/jcollyer/.rvm/ からgems/ruby-1.9.3-p327/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:225:in block in load_dependency' from /Users/jcollyer/.rvm/gems/ruby-1.9.3-p327/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:593:innew_constants_in' from /Users/jcollyer/.rvm/gems/ruby-1.9.3-p327/ gems/activesupport-3.0.10/lib/active_support/dependencies.rb:225:in load_dependency' from /Users/jcollyer/.rvm/gems/ruby-1.9.3-p327/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:239:inrequire' from /Users/jcollyer/.rvm/gems/ruby-1.9.3-p327/gems/aquarium-0.3.0/lib/ /Users/jcollyer/.rvm/gems/ruby-1.9.3-p327/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:239<top (required)>' from /Users/jcollyer/.rvm/gems/ruby-1.9.3-p327/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:239:inからの水族館/aspects/aspect.rb:5:in require': block in require' from /Users/jcollyer/.rvm/gems/ruby-1.9.3-p327/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:225:in/Users/jcollyer/.rvm/gems/ruby-1.9.3-p327/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:593:in の load_dependency のブロック内new_constants_in' from /Users/jcollyer/.rvm/gems/ruby-1.9.3-p327/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:225:inload_dependency ' from /Users/jcollyer/.rvm/gems/ruby-1.9.3-p327/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:239:in require' from /Users/jcollyer/.rvm/gems/ruby-1.9.3-p327/gems/aquarium-0.3.0/lib/aquarium/aspects.rb:2:in' from /Users/jcollyer/.rvm/ gems/ruby-1.9.3-p327/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:239: require' from /Users/jcollyer/.rvm/gems/ruby-1.9.3-p327/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:239:inrequire のブロック内 /Users/jcollyer/.rvm/gems/ruby-1.9.3- からp327/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:225: block in load_dependency' from /Users/jcollyer/.rvm/gems/ruby-1.9.3-p327/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:593:in/Users/jcollyer/.rvm/gems/ruby-1.9.3-p327/gems/activesupport-3.0.10/ の new_constants_in 内lib/active_support/dependencies.rb:225:in load_dependency' from /Users/jcollyer/.rvm/gems/ruby-1.9.3-p327/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:239:inrequire' from /Users/jcollyer/.rvm/gems/ruby-1.9.3-p327/gems/aquarium-0.3.0/lib/aquarium.rb:5:in <top (required)>' from /Users/jcollyer/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.1/lib/bundler/runtime.rb:68:inrequire ' from /Users/jcollyer/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.1/lib/bundler/runtime.rb:68:inblock (2 levels) in require' from /Users/jcollyer/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.1/lib/bundler/runtime.rb:66:ineach' from /Users/jcollyer/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.1/lib/bundler/runtime.rb:66:in block in require' from /Users/jcollyer/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.1/lib/bundler/runtime.rb:55:ineach' from /Users/jcollyer/ .rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.1/lib/bundler/runtime.rb:55:in require' from /Users/jcollyer/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.1/lib/bundler.rb:128:inrequire' from /Users/jcollyer/Documents/projects/hughes/hughes_cms/ <top (required)>' from /Users/jcollyer/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.0.10/lib/rails/commands.rb:28:in/Users/jcollyer/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.0.10/lib/rails/commands.rb からFuneral-Homes/config/application.rb:7:require で: 28: block in <top (required)>' from /Users/jcollyer/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.0.10/lib/rails/commands.rb:27:in/Users/jcollyer/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.0.10/lib/rails/commands.rb からタップして:27: <top (required)>' from script/rails:6:inscript/rails から require して: 6:「」で

私の宝石ファイル

ソース「http://rubygems.org」

  • 宝石「レール」、「3.0.10」
  • 宝石「sqlite3」
  • 宝石「mysql2」、「<0.3」
  • gem「デバイス」
  • gem「シンプルナビゲーション」
  • gem 'paperclip', '~> 2.4'
  • gem 'jquery-rails', '>= 1.0.12'
  • gem 'galetahub-simple_captcha', require: "simple_captcha"
  • gem 'will_paginate', '~> 3.0'
  • 宝石「アクアリウム」
  • 宝石「meta_search」

group :test, :development do - gem "rspec-rails", "~> 2.6" - gem "autotest" - gem 'factory_girl' end

4

1 に答える 1

1

水族館の宝石のバージョンを指定する

gem "aquarium", "~> 0.5.1"

ruby 1.9.3 はバージョン 0.5.1 からのみサポート

V0.5.1 (2012 年 5 月 1 日): Ruby 1.9.3 および JRuby 1.6.7 をサポートするようになりました。

ソース http://aquarium.rubyforge.org/

というか、このアプリには ruby​​-1.9.3 ではなく ruby​​-1.8.7 を使ってください。Rails 3.0 は ruby​​-1.9.3 と互換性がない可能性があるため

于 2012-12-27T18:58:55.283 に答える