$ rails --version
$ gem install rails
$ rails new <Application Name>
$ cd <Application Name> $ rails server
In case you encounter the error message of "Could not find a JavaScript runtime.", execute the following commands.
$ gem install execjs $ gem install therubyracer
Open the Gemfile and append the following lines.
$ vi Gemfile
gem ‘execjs’ gem ‘therubyracer’
$ bundle install
http://localhost:3000/
$ rails generate controller <Controller Name> <Method(View)> <Method(View)>(Example)
$ rails generate controller Say hello goodbye
http://localhost:3000/say/hello/
#ref(): File not found: "CreateApplication_fig2.png" at page "HowToUse/RubyOnRails/4.1"
S.Yatsuzuka
If you have questions or comments, please share them below. We will improve the above information referring to your posting.