I have create my first ruby applications with the command:> rails rails_space
Then I have created the controller like:> ruby script/generate controller Site index about help
Then started the server:> ruby script/server
I have removed the index.html file from the public directory.Then wrote the app/views/site/index.rhtml like:
[snip]
But in its not showing in thehttp://localhost:3000/
You have to tell rails that you want the root of your site to be connected to that controller. You do this by creating a route in routes.rb, eg
map.root :controller => 'foo'
will make the root of the site connected to the index action of the Foo controller.
Fred