It's not valid Ruby syntax.
>> {:data-url => "omg"}
NameError: undefined local variable or method `url' for main:Object
from (irb):2
it parses as :data - url.
Yehuda Katz
Developer | Engine Yard
(ph) 718.877.1325
On Sun, Mar 21, 2010 at 3:05 PM, Jacques Crocker <[email protected]> wrote:
> Seems like i'd be nice to have a fix for this so :data-url => "foo" works,
> especially given the focus on html5 data attributes in rails3. It sort of
> sucks though since it's valid ruby syntax so fixing it might involved some
> ugly internal hacks.
>
>
>
> On Mar 21, 2010, at 2:59 PM, buhrmi wrote:
>
> > Hi there,
> >
> > quite simple to reproduce bug:
> >
> > %sometag{:data-url => 'foo'}
> >
> > gives: undefined local variable or method 'url' for #<Class>
> >
> > one can of free german beer for the person who fixes that.
> >
> > Thanks :)
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> "Haml" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> [email protected] <haml%[email protected]>.
> > For more options, visit this group at
> http://groups.google.com/group/haml?hl=en.
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Haml" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected] <haml%[email protected]>.
> For more options, visit this group at
> http://groups.google.com/group/haml?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Haml" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/haml?hl=en.