I noticed something odd:
In a view, i''m using the case/when, but the strange thing is that
rails/ruby can''t seem to handle whitespace in front of the
"when"
statement:
<% when :string then -%>
generates:
compile error
script/../config/../app/views/inside/admin/_form.rhtml:26: parse error,
unexpected tIDENTIFIER, expecting kWHEN
_erbout.concat " "; when :string then
^
allthough
<% when :string then -%>
works..
Seems like a bug to me..
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---