Hi --

On Mon, 31 Mar 2008, bparanj / gmail.com wrote:

> When I run the following in the irb session, I am getting an error.
> Any ideas why? TIA.
> irb(main):036:0> { :a => 1, :b => 4 }
> => {:a=>1, :b=>4}
> irb(main):037:0> { :x 2, :y 6 }
> SyntaxError: (irb):37: syntax error, unexpected tINTEGER, expecting
> tASSOC
> { :x 2, :y 6 }
>      ^

You mean:

   { x: 2, y: 6 }


David

-- 
Rails training from David A. Black and Ruby Power and Light:
   ADVANCING WITH RAILS   April 14-17          New York City
   INTRO TO RAILS         June 9-12            Berlin
   ADVANCING WITH RAILS   June 16-19           Berlin
See http://www.rubypal.com for details and updates!