According to this:
http://api.rubyonrails.com/classes/ActionView/Helpers/PrototypeHelper.html#M000409
You can still pass in an HTML options hash, so you probably want:
<%= link_to_remote "<#{tag}>",
{ :url => { :controller => ''tags'', :action =>
''listmytag'', :id =>
"#{tag}" }, :update => "body"},
{ :style => "font-size: #{font_size}"}
%>
HTH,
David
On 04/04/06, Charlie <Charlie.cheung@usa.com>
wrote:> The following code of tag clouds implementation:
> <%= link_to(h("<#{tag}>"),
"tags/listmytag/#{tag}", { :style =>
> "font-size: #{font_size}" } ) -%>
>
> I want to change it to ajax style:
> <%= link_to_remote "<#{tag}>",
> { :url => { :controller => ''tags'', :action =>
''listmytag'', :id =>
> "#{tag}" },
> :update => "body"} %>
> but I do not know how to add the "{ :style => "font-size:
#{font_size}"
> }" to link_to_remote to make the tags'' different font size of
the tag
> cloud.
>
> Thanks
> Charlie
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>