Forum: Ruby on Rails link_to_remote with an image

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
8133ee52ca72188132b5c7d97dfb967f?d=identicon&s=25 Chris Habgood (chabgood)
on 2009-04-17 21:53
(Received via mailing list)
I have this:
<%= link_to_remote 'Remove', :url => {:controller => 'steps', :action
=> 'removestep', :id => @mop}, :with => "'step_id=' + #
{step.id}", :src => '/images/Trash_can.gif'  %></span>

I am not getting an image.  Is this the correct way to make a
link_to_remote with a gif?
Aafa8848c4b764f080b1b31a51eab73d?d=identicon&s=25 Phlip (Guest)
on 2009-04-17 22:20
(Received via mailing list)
> <%= link_to_remote 'Remove', :url => {:controller => 'steps', :action
> => 'removestep', :id => @mop}, :with => "'step_id=' + #
> {step.id}", :src => '/images/Trash_can.gif' %></span>
>
> I am not getting an image.  Is this the correct way to make a
> link_to_remote with a gif?

Newp.

  link_to_remote image_tag('/images/Trash_can.gif'),
        :blah => 'blah blah'
8133ee52ca72188132b5c7d97dfb967f?d=identicon&s=25 Chris Habgood (chabgood)
on 2009-04-17 22:39
(Received via mailing list)
ok, thanks.
This topic is locked and can not be replied to.