Ruby On Rails - Part Two - Setup & Configuration

I started reading the Pragmatic Programmers - Agile Web Development with Rails. I haven’t read very far into the book yet, but so far it’s as good as I hoped it would be.

I’ve also moved my blog to a new host. They have support for Ruby On Rails built right into the hosting package!

I downloaded and installed RadRails which is a very cool Ruby On Rails IDE built on the Eclipse framework. I’m actually pretty comfortable at either the command line or in an IDE. So you’ll probably see me switching back and forth throughout this blog post series.

I ran the following command on my web host:

rails railsblogjourney

which instructed rails to create a basic application for me. Pretty cool.

After that I wanted to continue validating my workflow and ensure that Rails was functioning correctly on my web host, so I generated a new controller:

ruby script/generate controller HelloWorld

and then added an index method

def index
render :text => "Hello World."
end

If you browse to http://www.robherbst.com/railsblogjourney/HelloWorld
you too can experience the awe inspiring demo. Uh…. right.

Basically today’s goal was to setup a functioning environment for the demo application and to make sure we are able to execute, some extremely basic code.

So far so good.