Topic: Issues getting proper web-page response.
Hello everybody, I'm new here, as well as to RoR (but not so much to Ruby).
I am trying to get a "simple" RoR Hello World application running. Here are the steps I have taken and the issues I've received:
sudo apt-get install ruby
sudo apt-get install rails
sudo apt-get install mysql-server
sudo apt-get install mysql-client
mysql startThis installs ruby/rails/MYSQL with no errors returned.
I then start setting up the project for the hello world application
cd /home/[username]/desktop
rails helloworld
cd ./helloworld
ruby script/server
ruby script/generate controller hiThis creates the project folder "helloworld" on my desktop successfully. It also creates a near-empty file in my controllers folder named "hi". I check to make sure the server is running (which it is, because it returns my 127.0.0.1:3000 with the beautiful default rails index page).
However, when I try and navigate to 127.0.0.1:3000/hi I get the red text of death saying "We're sorry, but something went wrong.", even if I define "index" in the controllers file.
I would appreciate any help getting this fixed. Thank you.
Last edited by champloo11 (2012-09-01 13:02:42)