[Rails] Re: A Good Tutorial on Params and Variables

Brian Hughes
2006-04-30T21:25:40Z

On Apr 30, 2006, at 04:27 PM, Jeremy Evans wrote:
> On 4/29/06, Brian Hughes <brianvh@alum.dartmouth.org> wrote:
>> Symbols can''t start with digits.
>
> irb(main):004:0> ''1x''.to_sym
> => :"1x"
> irb(main):005:0> :''1x''
> => :"1x"

I''ve never seen that syntax for symbols before, so it never occurred
to me that you could quote the symbol name. :)

I''m  not sure I like the look of that, so I don''t think
I''ll be using
that form, but it''s good to know that it''s there, in case I
need it...

-Brian