Truth to be told, Rails uses colon notation very heavily. E.g. here:
http://api.rubyonrails.com/classes/ActiveRecord/Base.html#M001086
Creating a helper for each occurrence of a long line call is not a
practically working solution.
I would perceive the issue being a bug, because HAML should not treat
lines following the "|" symbol as new parseable lines at all - so the
problem should not occur ever.
Thank you for the suggestion.
On Oct 31, 12:27 pm, "s.ross" <[EMAIL PROTECTED]> wrote:
> One possible way to do this is to write a helper that returns a hash.
>
> def observe_helper
> {:url => {:controller => 'some_controller', :action =>
> 'lookup'}, :update => 'destination', :with => 'seed'}
> end
>
> In your haml:
>
> = observe_field :lookup_field, observe_helper
>
> Or something like that. Would it work?
>
> BTW: I was under the impression that, for whatever reason, Rails
> didn't appreciate symbols as the value elements of their hashes.
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---