Ruby Bootcamp Basics

I’ve been putting myself through a Ruby bootcamp.  Here’s are the steps of my training:

  1. Install Ruby and Rails on Mac OS X Snow Leopard
  2. Ruby Primer introduction to Ruby basics
  3. Quick Reference
  4. Ruby on Rails Tutorial comprehensive tutorial that goes through the complete setup from db to web application

While going through the tutorial I found a few issues that I wanted to highlight:

  1. The use of the start_form_tag has been deprecated, the correct tag to use is form_tag followed by do e.g. <%=start_form_tag :action=> ‘create’ %> becomes <% form_tag :action=> ‘create’ do %>
  2. The use of the end_form_tag has been deprecated, the correct tag to use is end.
  3. The error message: syntax error, unexpected kENSURE, expecting $end means that Ruby is trying to ensure that a keyword in this case ‘end’ is being used.
  4. redirects_to versus redirect_to the former is a class method and the later is an instance method.
Enhanced by Zemanta
Share on reddit
Share on LinkedIn
Bookmark this on Digg

  1. Pingback: Ruby Bootcamp Basics | Femgineer Mac Ruby

  2. Brian Armstrong 25 December, 2009 at 1:28 am

    Hey Poornima, have you read Agile Web Development With Rails 3rd Edition? Reading through this helped me get up and running quickly!

    Happy to help if you hit any weird stuff with rails!


    P.S. Found your blog through this article, congrats!

  3. Poornima Vijayashanker 25 December, 2009 at 11:20 am

    Thanks Brian! No I haven’t read it, but I am looking for a good Ruby book so I’ll check it out. Also, I’ll eventually like to port my rails application to iPhone.

  4. Brian Armstrong 28 December, 2009 at 6:11 pm

    @Poornima Vijayashanker
    Interesting, I haven’t tried porting a Rails app to iPhone yet. Good luck!

  5. Pingback: Ruby Tuesday: Test Driving Ruby on Rails | Femgineer

Leave a Comment