Issue with section: 4.2 Say "Hello", Rails

71 views
Skip to first unread message

Matt Riccardi

unread,
Jan 12, 2014, 8:16:02 PM1/12/14
to rubyonra...@googlegroups.com
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/welcome.js.coffee
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

unread,
Jan 17, 2014, 4:21:29 AM1/17/14
to rubyonra...@googlegroups.com
Can you please paste here your terminal session?

Cher Lee

unread,
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

unread,
Aug 14, 2018, 5:39:39 AM8/14/18
to rubyonra...@googlegroups.com
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 rubyonrails-do...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
Visit this group at https://groups.google.com/group/rubyonrails-docs.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages