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 Vergara Contesse Ingeniería Civil Industrial UC --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
<%= link_to_remote(image_tag("/images/something.jpg"), :url => something_path) %> will do... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hello!!! 2008/9/3 Felipe Vergara <felvergara-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> 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! :P -- Rodrigo Fuentealba Concepción, Chile --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
thanks!! On Wed, Sep 3, 2008 at 10:51 AM, Rodrigo Fuentealba < the.code.keeper-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hello!!! > > 2008/9/3 Felipe Vergara <felvergara-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: > > 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! :P > > -- > Rodrigo Fuentealba > Concepción, Chile > > > >-- Felipe Vergara Contesse Ingeniería Civil Industrial UC --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---