Issue with section: 4.2 Say "Hello", Rails

Skip to first unread message

Matt Riccardi

Jan 12, 2014, 8:16:02 PM1/12/14
I'm currently using a Mac OSX 10.6.8 and when I tried to create a new controller using the command: $ rails generate controller  welcome index   in the terminal, nothing happens.  

The guide says the following will happen: Rails will create several files and a route for you.
create  app/controllers/welcome_controller.rb
 route  get "welcome/index"
invoke  erb
create    app/views/welcome
create    app/views/welcome/index.html.erb
invoke  test_unit
create    test/controllers/welcome_controller_test.rb
invoke  helper
create    app/helpers/welcome_helper.rb
invoke    test_unit
create      test/helpers/welcome_helper_test.rb
invoke  assets
invoke    coffee
create      app/assets/javascripts/
invoke    scss
create      app/assets/stylesheets/welcome.css.scss

Most important of these are of course the controller, located at app/controllers/welcome_controller.rb and the view, located at app/views/welcome/index.html.erb.

Open the app/views/welcome/index.html.erb file in your text editor. 

When I try to open the .erb file in my text editor, its not showing up.  

What am I doing wrong here?

Xavier Noria

Jan 17, 2014, 4:21:29 AM1/17/14
Can you please paste here your terminal session?

Cher Lee

Aug 12, 2018, 11:33:45 AM8/12/18
to Ruby on Rails: Documentation
I also had the problem after I successfully rails new demo. When I bin/rails generate controller welcome and it stops. Who can tell me what is wrong related ?

Matt Riccardi於 2014年1月13日星期一 UTC+8上午9時16分02秒寫道:

Cher Lee

Aug 14, 2018, 5:39:39 AM8/14/18
I fix the problem after I execute the "bundle install” and I would like to share this message to the one who had the same problem with me.

You received this message because you are subscribed to the Google Groups "Ruby on Rails: Documentation" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

Reply all
Reply to author
0 new messages