前提・実現したいこと
AWS Cloud9でMySQLにてRuby on Railsの環境を構築したいです。
すでにrails s
をして、プレビューからブラウザ上で「Yay! You"re on Rails」は表示できています。
発生している問題・エラーメッセージ
app/views/users/index.html.erb
を作成し、ルーティングを行った後に、プレビューを試みると下記のエラーとなります。
確かにindex.html.erb
は存在しているのですが、ないと言われます。
bash: line 1: gyakuten_repositories/rails_lessons/hello_sample/app/views/users/index.html.erb: No such file or directory Process exited with code: 127
該当のソースコード
原因がわからなかったためものすごく単純化しています。
エラーが起きている状態のGitHubです。
https://github.com/untrustworth/Gyakuten
ruby:index.html.erb
1<h1>Hello World!</h1>
ruby:routes.rb
1Rails.application.routes.draw do 2 get '/users', to: 'users#index' 3end
ruby:users_controller.rb
1class UsersController < ApplicationController 2 def index 3 end 4end
試したこと
サーバを一度停止して再起動しましたが、解決しませんでした。
No such file or directory, cloud9 No such file or directory, code: 127 などで検索しましたが、解決策は見つかりませんでした。
code:127はスペルミスも多いとのことで確認しましたが、見つけられませんでした。
補足情報(FW/ツールのバージョンなど)
AWS Cloud9
ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux]
Rails 5.0.7.2
mysql Ver 14.14 Distrib 5.5.62, for Linux (x86_64) using readline 5.1
どうぞよろしくお願いします。
あなたの回答
tips
プレビュー