HAML's involvement in that code looks pretty minimal. I think if
there is any refactoring to be done, it has more to do w/ the Rails
code than the HAML. On that note, I don't see anything necessarily
wrong with that code. If you find yourself typing that multiple times
throughout your views, it would probably help to extract most of that
into a helper.
On Mar 7, 2007, at 10:12 AM, Larry Kelly wrote:
>
> I'm attaching an AJAX event call to a select tag. The line looks bad.
> Is there better way to code this?
>
> = select 'service_record', 'vendor_name',
> vendor_name_select_options(@customer_id), :onchange =>
> remote_function(:url=>
> {:action=>:ajax_select_vendor}, :with=>'Form.Element.serialize(this)')
>
> - Larry
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---