<%= link_to ((image_tag \'image.png\'),
url_for({:controller => \'controller_name\', :action => \'action_name\'}),
:class => \'quick\',
A slightly sexier solution?
<%= link_to image_tag("image.png", :alt => "Image Description", :class => "css"), root_path %>
Try this:
<%= link_to (image_tag('image.png') + text,
url_for({:controller => 'controller_name', :action => 'action_name'}),
:class => 'quick',
:remote => true) %>
The first argument is the text part and with image_tag you create HTML, but you can easily append stuff.
I used the following and it works just fine:
<%= link_to image_tag("logo.jpg"), controller: 'welcome' %>
Try this.
<%= link_to image_tag('/images/image.png') + "some extra text", url_for({:controller => 'controller_name', :action => 'action_name'}), :class => 'quick', :remote => true %>