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:
cd hello; ruby script/generate controller App
vi app/controllers/app_controller.rb and put these content in it:
class AppController < ApplicationController
vi app/views/app/greeting.rhtml and put these content in it:
Yes itâ€™s working!
- ruby script/server -d
Now open a browser and visit to:
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
Can you kindly help me? Thanks.