Yeah,
#{x} within a doublequoted string replaces #{x} with x.to_s.
<%= form_remote_tag
:loading=>"load(#{task_row.id})",
%>
Brian
On 5/6/05, Derek Haynes
<derek.haynes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Quick question:
>
> I need to include a parameter in a form tag (cut out irrelevant info):
>
> <%= form_remote_tag
> :loading=>"load(task_row.id)",
> %>
>
> I''d like to pass task_row.id to the load() javascript function,
but I
> can''t figure out how to insert it correctly.
>
> Obviously it is currently inserted as text.
>
> Ideas?
>
> Thanks,
>
> Derek
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
--
The years ahead pick up their dark bags.
They move closer. There''s a slight rise in the silence
then nothing.
--
(If you''re receiving this in response to mail sent to
bluczkie-OM76b2Iv3yLQjUSlxSEPGw@public.gmane.org, don''t be concerned
This is my new address,
but mail will be forwarded here indefinitely)