Today marks the first beta release of the coming version of Rails, version 3.0 and I figured it’d be fun revisiting that post.

So, this is a step by step tutorial to getting over the first hurdle: Creating a “hello world” application in Ruby on Rails. This should work assuming you already have Rails 3 installed and running on your system:

$ rails hello

$ cd hello

$ rails generate controller hello

Open the file config/routes.rb. Almost at the bottom (line #57) is this line:

# match ':controller(/:action(/:id(.:format)))'

Remove the # in front so the line looks like:

match ':controller(/:action(/:id(.:format)))'

Create a file named index.html.erb in app/views/hello containing the text ‘Hello world’.