Hi,
I need to know if there is a way to use a link to remote but instead of using a string link use an image?
thank for any response!
Hi,
I need to know if there is a way to use a link to remote but instead of using a string link use an image?
thank for any response!
<%= link_to_remote(image_tag("/images/something.jpg"), :url => something_path) %> will do...
Hello!!!
Hi,
I need to know if there is a way to use a link to remote but instead of using a string link use an image?
Instead of text, put something like this on your remote:
<%= link_to_remote image_tag('hello.gif'), :url=>{ :controller=>"animals", :action=>"destroy", :id=>animal.id}, :update=>"animal#{animal.id}", :loading=>"status('animal#{animal.id}')" %>
chau wn!
thanks!!