I'm going through the Beta version of "Agile Web Development with Rails - 4th Edition". But I'm having difficulty with initial configuration on my Gentoo box. I started like so, basically following the book:
Code:
$ rails testrails
$ cd testrails
$ script/generate controller Say hello goodbye
This created files including app/controllers/say_controller.rb, app/views/say/hello.html.erb, and app/views/say/hello.html.erb
like the book said it would. So then I ran the server in a separate terminal:
Then I opened up a browser, but if I try to visit "http://localhost:3000/say/hello" all I get in the browser window is the message: "We're sorry, but something went wrong. We've been notified about this issue and we'll take a look at it shortly."
If I visit "http://localhost:3000/" then I get a default index page, which says I need to edit "config/routes.rb" But none of the comments in routes.rb make any sense to me, so I am not sure what I need to put in it. The book hasn't mentioned anything about routes yet.