Hello World for Ruby on Rails

Posted by andy gaskell on Aug 15th, 2006

I’m just getting started with Rails so I went looking for a Hello World example. Eventually I came to this post. I’m going to go over the equivalent example using the RIDE-ME IDE.

1. Create a new project. Click File – New – Project.

2. Enter C:\ in the Location textbox. Enter HelloWorld in the project name. Click OK.

New Project dialog

3. Click File – New – Controller. Enter Hello for the name of the Controller. Click OK.

New Controller dialog

4. In the Project Explorer window, expand app, expand views. Right click the hello and click on Add New RHTML Page.

Adding a new RHTML page

5. Name the file index.rhtml. Click OK.

Naming the new RHTML page

6. Type “hello world” in your rhtml page. Save the file.

7. Press F5 (or click Run) and in a few seconds the web server starts and a browser window launches. Change the URL to http://localhost:3000/hello.

8. Hello World!

I hope to post more short projects as I work my way through the PickAxe and Agile Web Development with Rails books.

2 Responses

  1. Michael Leung Says:

    Dude!

    This is awesome!

    Keep ‘em coming!

  2. caffeinecoder Says:

    My first steps into RubyOnRails and RIDE-ME have been taken!
    Thanks for this tutorial

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.