Hello,
I am a rails newbie. I am using ruby 1.8.6, rails 2.3.2 & chrome
browser in windows XP.
I was trying out a hello world application. I ran the following
commands.
-------------------------------------
rails> rails demo
rails> cd demo
demo> ruby script/server
-------------------------------------
And when I open http://localhost:3000/ in my browser, I get a "Welcome
aboard You’re riding Ruby on Rails!" message. This much is working
fine.
Then I did this.
---------------------------------------------------------------
demo> ruby script/generate controller Say
--------------------------------------------------------------
And I edited app/controllers/say_controller.rb as given.
----------------------------------------------------------------
class SayController < ApplicationController
def hello
end
end
----------------------------------------------------------
Now when I open http://localhost:3000/say/hello in my browser, I get
an error 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 created hello.rhtml in app/views/say/ as follows.
-------------------------------------------------------------------
<html>
<head>
<title>Hello, Rails!</title>
</head>
<body>
<h1>Hello from Rails!</h1>
</body>
</html>
----------------------------------------------------------------
Then, again I tried to open http://localhost:3000/say/hello in my
browser, I still get the same error message. [The ''demo> ruby
script/
server'' command is still running.]
Can someone help me to figure out what went wrong.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---