Link_to_remote

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!


Felipe V. Contesse
Ingeniería Civil Industrial UC

<%= link_to_remote(image_tag("/images/something.jpg"), :url =>
something_path) %>
will do…

Hello!!!

2008/9/3 Felipe V. [email protected]:

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! :stuck_out_tongue:


Rodrigo F.
Concepción, Chile

thanks!!

On Wed, Sep 3, 2008 at 10:51 AM, Rodrigo F. <
[email protected]> wrote:


Rodrigo F.
Concepción, Chile


Felipe V. Contesse
Ingeniería Civil Industrial UC