I am trying to learn Ruby and Rails from a couple of books and some online tutorials. I am having trouble getting my test project to work.
I have gotten the localhost to connect at http://localhost:3000/ and I get the hold page that is there. but when I go to http://localhost:3000/sals/hello which should load my helloworld program, I get 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.
I have put this code under the filename hello.rhtml in the /views/sals directory.
<html> <body> <h1><%= @message %></h1> </body> </html>
I also put this in for the sals_controller.rb file.
class SalsController < ApplicationController def hello @message = 'Hello World!' end end
I am sort of stuck. I am running on Ubuntu. Does anyone have any idea what I am doing wrong?