前提・実現したいこと
ruby on rails を使って新しいアプリケーションを作成したいと思っております。
progateで基礎を学び実際にオリジナルサービスを作成しようとしております。
railsガイドブックに従い新規プロジェクトを作成しようとしたのですが、エラーが出てしまい困っております。
初歩的な質問で申し訳ございませんが助けていただけると幸いです。
発生している問題・エラーメッセージ
Traceback (most recent call last): 47: from /Users/un/.rbenv/versions/2.5.0/bin/rails:23:in `<main>' 46: from /Users/un/.rbenv/versions/2.5.0/bin/rails:23:in `load' 45: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/railties-6.0.1/exe/rails:10:in `<top (required)>' 44: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require' 43: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require' 42: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/railties-6.0.1/lib/rails/cli.rb:18:in `<top (required)>' 41: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/railties-6.0.1/lib/rails/command.rb:46:in `invoke' 40: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/railties-6.0.1/lib/rails/command/base.rb:65:in `perform' 39: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch' 38: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command' 37: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run' 36: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/railties-6.0.1/lib/rails/commands/application/application_command.rb:26:in `perform' 35: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/base.rb:466:in `start' 34: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/group.rb:232:in `dispatch' 33: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/invocation.rb:133:in `invoke_all' 32: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/invocation.rb:133:in `map' 31: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/invocation.rb:133:in `each' 30: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/invocation.rb:133:in `block in invoke_all' 29: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command' 28: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run' 27: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/railties-6.0.1/lib/rails/generators/rails/app/app_generator.rb:319:in `create_config_files' 26: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/railties-6.0.1/lib/rails/generators/app_base.rb:156:in `build' 25: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/railties-6.0.1/lib/rails/generators/rails/app/app_generator.rb:106:in `config' 24: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/railties-6.0.1/lib/rails/generators/rails/app/app_generator.rb:19:in `inside' 23: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/actions.rb:188:in `inside' 22: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/2.5.0/fileutils.rb:122:in `cd' 21: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/2.5.0/fileutils.rb:122:in `chdir' 20: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/actions.rb:188:in `block in inside' 19: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/railties-6.0.1/lib/rails/generators/rails/app/app_generator.rb:115:in `block in config' 18: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/railties-6.0.1/lib/rails/generators/rails/app/app_generator.rb:19:in `directory' 17: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/actions/directory.rb:52:in `directory' 16: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/actions.rb:94:in `action' 15: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/actions/directory.rb:66:in `invoke!' 14: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/actions/directory.rb:80:in `execute!' 13: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/actions/directory.rb:80:in `each' 12: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/actions/directory.rb:92:in `block in execute!' 11: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/actions/file_manipulation.rb:122:in `template' 10: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/actions/create_file.rb:25:in `create_file' 9: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/actions.rb:94:in `action' 8: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/actions/create_file.rb:60:in `invoke!' 7: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/actions/empty_directory.rb:117:in `invoke_with_conflict_check' 6: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/actions/create_file.rb:63:in `block in invoke!' 5: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/actions/create_file.rb:63:in `open' 4: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/actions/create_file.rb:63:in `block (2 levels) in invoke!' 3: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/actions/create_file.rb:53:in `render' 2: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-0.20.3/lib/thor/actions/file_manipulation.rb:131:in `block in template' 1: from /Users/un/.rbenv/versions/2.5.0/lib/ruby/2.5.0/erb.rb:885:in `result' /Users/un/.rbenv/versions/2.5.0/lib/ruby/2.5.0/erb.rb:885:in `eval': /Users/un/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/railties-6.0.1/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt:10: syntax error, unexpected ')', expecting end-of-input (SyntaxError) ); if spring_install? ^
appファイルなどは作成できているのですが、dbファイルやlibなどが作成されない現象が起こっています。。
試したこと
railsガイドに従った。
rubyのバージョンを変えてみたがうまくいかず
補足情報(FW/ツールのバージョンなど)
ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin18] Rails 6.0.1
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/11/30 14:51