R
Ruby Newbee
I just started my lesson on rails and followed the steps in the book
"beginning ruby on rails", but sorry I have been getting wrong.
I took the steps to build a new rails application as below:
1. rails hello
2. cd hello; ruby script/generate controller App
3. vi app/controllers/app_controller.rb and put these content in it:
class AppController < ApplicationController
def greeting
end
end
4. vi app/views/app/greeting.rhtml and put these content in it:
<html>
<head>
<title>Ruby on Rails</title>
</head>
<body>
<h1>Yes it=E2=80=99s working!</h1>
</body>
</html>
5. ruby script/server -d
Now open a browser and visit to:
http://localhost:3000/app/greeting
Hmm I got:
We're sorry, but something went wrong.
We've been notified about this issue and we'll take a look at it shortly.
Can you kindly help me? Thanks.
"beginning ruby on rails", but sorry I have been getting wrong.
I took the steps to build a new rails application as below:
1. rails hello
2. cd hello; ruby script/generate controller App
3. vi app/controllers/app_controller.rb and put these content in it:
class AppController < ApplicationController
def greeting
end
end
4. vi app/views/app/greeting.rhtml and put these content in it:
<html>
<head>
<title>Ruby on Rails</title>
</head>
<body>
<h1>Yes it=E2=80=99s working!</h1>
</body>
</html>
5. ruby script/server -d
Now open a browser and visit to:
http://localhost:3000/app/greeting
Hmm I got:
We're sorry, but something went wrong.
We've been notified about this issue and we'll take a look at it shortly.
Can you kindly help me? Thanks.