質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
86.12%
Ruby on Rails 4

Ruby on Rails4はRubyによって書かれたオープンソースのウェブフレームワークです。 Ruby on Railsは「設定より規約」の原則に従っており、効率的に作業を行うために再開発を行う必要をなくしてくれます。

serverspec

serverspecは、Ruby製のサーバ環境テストケース作成ツールです。

解決済

Ruby on Rails サーバーエラー

DaisukeIshii
DaisukeIshii

総合スコア44

Ruby on Rails 4

Ruby on Rails4はRubyによって書かれたオープンソースのウェブフレームワークです。 Ruby on Railsは「設定より規約」の原則に従っており、効率的に作業を行うために再開発を行う必要をなくしてくれます。

serverspec

serverspecは、Ruby製のサーバ環境テストケース作成ツールです。

1回答

0リアクション

0クリップ

2370閲覧

投稿2015/09/26 03:44

Ruby on Railsのサーバーが下記エラーメッセージにより突然動かなくなってしまいました。環境はIDE(Cloud9)です。
Googleで探しているのですが、解決策が見つかりません。
どなたか解決法ご存知では無いでしょうか?
ご教示頂けますと幸いです。

lang

daijapan@todo3:~/workspace $ rails s -b $IP -p $PORT => Booting WEBrick => Rails 4.2.1 application starting in development on http://0.0.0.0:8080 => Run `rails server -h` for more startup options => Ctrl-C to shutdown server Exiting /home/ubuntu/workspace/config/routes.rb:7:in `block in <top (required)>': undefined method `update' for #<ActionDispatch::Routing::Mapper:0x00000005fceba8> (NoMethodError) from /usr/local/rvm/gems/ruby-2.2.1/gems/actionpack-4.2.1/lib/action_dispatch/routing/route_set.rb:432:in `instance_exec' from /usr/local/rvm/gems/ruby-2.2.1/gems/actionpack-4.2.1/lib/action_dispatch/routing/route_set.rb:432:in `eval_block' from /usr/local/rvm/gems/ruby-2.2.1/gems/actionpack-4.2.1/lib/action_dispatch/routing/route_set.rb:410:in `draw' from /home/ubuntu/workspace/config/routes.rb:1:in `<top (required)>' from /usr/local/rvm/gems/ruby-2.2.1/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:268:in `load' from /usr/local/rvm/gems/ruby-2.2.1/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:268:in `block in load' from /usr/local/rvm/gems/ruby-2.2.1/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:240:in `load_dependency' from /usr/local/rvm/gems/ruby-2.2.1/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:268:in `load' from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.1/lib/rails/application/routes_reloader.rb:40:in `block in load_paths' from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.1/lib/rails/application/routes_reloader.rb:40:in `each' from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.1/lib/rails/application/routes_reloader.rb:40:in `load_paths' from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.1/lib/rails/application/routes_reloader.rb:16:in `reload!' from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.1/lib/rails/application/routes_reloader.rb:26:in `block in updater' from /usr/local/rvm/gems/ruby-2.2.1/gems/activesupport-4.2.1/lib/active_support/file_update_checker.rb:75:in `call' from /usr/local/rvm/gems/ruby-2.2.1/gems/activesupport-4.2.1/lib/active_support/file_update_checker.rb:75:in `execute' from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.1/lib/rails/application/routes_reloader.rb:27:in `updater' from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.1/lib/rails/application/routes_reloader.rb:7:in `execute_if_updated' from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.1/lib/rails/application/finisher.rb:69:in `block in <module:Finisher>' from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.1/lib/rails/initializable.rb:30:in `instance_exec' from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.1/lib/rails/initializable.rb:30:in `run' from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.1/lib/rails/initializable.rb:55:in `block in run_initializers' from /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:226:in `block in tsort_each' from /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component' from /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:429:in `each_strongly_connected_component_from' from /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component' from /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:in `each' from /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:in `call' from /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:in `each_strongly_connected_component' from /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:224:in `tsort_each' from /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:203:in `tsort_each' from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.1/lib/rails/initializable.rb:54:in `run_initializers' from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.1/lib/rails/application.rb:352:in `initialize!' from /home/ubuntu/workspace/config/environment.rb:5:in `<top (required)>' from /usr/local/rvm/gems/ruby-2.2.1/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `require' from /usr/local/rvm/gems/ruby-2.2.1/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `block in require' from /usr/local/rvm/gems/ruby-2.2.1/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:240:in `load_dependency' from /usr/local/rvm/gems/ruby-2.2.1/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `require' from /home/ubuntu/workspace/config.ru:3:in `block in <main>' from /usr/local/rvm/gems/ruby-2.2.1/gems/rack-1.6.1/lib/rack/builder.rb:55:in `instance_eval' from /usr/local/rvm/gems/ruby-2.2.1/gems/rack-1.6.1/lib/rack/builder.rb:55:in `initialize' from /home/ubuntu/workspace/config.ru:in `new' from /home/ubuntu/workspace/config.ru:in `<main>' from /usr/local/rvm/gems/ruby-2.2.1/gems/rack-1.6.1/lib/rack/builder.rb:49:in `eval' from /usr/local/rvm/gems/ruby-2.2.1/gems/rack-1.6.1/lib/rack/builder.rb:49:in `new_from_string' from /usr/local/rvm/gems/ruby-2.2.1/gems/rack-1.6.1/lib/rack/builder.rb:40:in `parse_file' from /usr/local/rvm/gems/ruby-2.2.1/gems/rack-1.6.1/lib/rack/server.rb:299:in `build_app_and_options_from_config' from /usr/local/rvm/gems/ruby-2.2.1/gems/rack-1.6.1/lib/rack/server.rb:208:in `app' from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.1/lib/rails/commands/server.rb:61:in `app' from /usr/local/rvm/gems/ruby-2.2.1/gems/rack-1.6.1/lib/rack/server.rb:336:in `wrapped_app' from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.1/lib/rails/commands/server.rb:139:in `log_to_stdout' from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.1/lib/rails/commands/server.rb:78:in `start' from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:80:in `block in server' from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:75:in `tap' from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:75:in `server' from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:39:in `run_command!' from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.1/lib/rails/commands.rb:17:in `<top (required)>' from /home/ubuntu/workspace/bin/rails:8:in `require' from /home/ubuntu/workspace/bin/rails:8:in `<top (required)>' from /usr/local/rvm/gems/ruby-2.2.1/gems/spring-1.3.6/lib/spring/client/rails.rb:28:in `load' from /usr/local/rvm/gems/ruby-2.2.1/gems/spring-1.3.6/lib/spring/client/rails.rb:28:in `call' from /usr/local/rvm/gems/ruby-2.2.1/gems/spring-1.3.6/lib/spring/client/command.rb:7:in `call' from /usr/local/rvm/gems/ruby-2.2.1/gems/spring-1.3.6/lib/spring/client.rb:26:in `run' from /usr/local/rvm/gems/ruby-2.2.1/gems/spring-1.3.6/bin/spring:48:in `<top (required)>' from /usr/local/rvm/gems/ruby-2.2.1/gems/spring-1.3.6/lib/spring/binstub.rb:11:in `load' from /usr/local/rvm/gems/ruby-2.2.1/gems/spring-1.3.6/lib/spring/binstub.rb:11:in `<top (required)>' from /home/ubuntu/workspace/bin/spring:13:in `require' from /home/ubuntu/workspace/bin/spring:13:in `<top (required)>' from bin/rails:3:in `load' from bin/rails:3:in `<main>'

以下のような質問にはリアクションをつけましょう

  • 質問内容が明確
  • 自分も答えを知りたい
  • 質問者以外のユーザにも役立つ

リアクションが多い質問は、TOPページの「注目」タブのフィードに表示されやすくなります。

気になる質問をクリップする

クリップした質問は、後からいつでもマイページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

下記のような質問は推奨されていません。

  • 間違っている
  • 質問になっていない投稿
  • スパムや攻撃的な表現を用いた投稿

適切な質問に修正を依頼しましょう。

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
86.12%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問

同じタグがついた質問を見る

Ruby on Rails 4

Ruby on Rails4はRubyによって書かれたオープンソースのウェブフレームワークです。 Ruby on Railsは「設定より規約」の原則に従っており、効率的に作業を行うために再開発を行う必要をなくしてくれます。

serverspec

serverspecは、Ruby製のサーバ環境テストケース作成ツールです。