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