[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Grabbing banners from other sites.

jimjohnlists@yahoo.com

4/26/2007 11:04:00 PM

I want my banner ads to be rotated using ruby.

So I try this

<%= link_to_remote( image_tag("graphics/
select01.gif", :alt=>'Programming', :size=>'100x20', :border=>0),
:update => "select01_div",
:url =>{ :action => :select01_action }) %>

and it works. But this doesn't seem to work for me. Does ruby expect
images to be local even if we do http://?

<%= link_to_remote( image_tag(http://
globalwarmingawareness2007.org.uk /graphics/
select01.gif, :alt=>'Programming', :size=>'100x20', :border=>0),
:update => "select01_div",
:url =>{ :action => :select01_action }) %>

1 Answer

Phillip Gawlowski

4/27/2007 5:05:00 AM

0

jimjohnlists@yahoo.com wrote:
> I want my banner ads to be rotated using ruby.
>
> So I try this
>
> <%= link_to_remote( image_tag("graphics/
> select01.gif", :alt=>'Programming', :size=>'100x20', :border=>0),
> :update => "select01_div",
> :url =>{ :action => :select01_action }) %>
>
> and it works. But this doesn't seem to work for me. Does ruby expect
> images to be local even if we do http://?
>
> <%= link_to_remote( image_tag(http://
> globalwarmingawareness2007.org.uk /graphics/
> select01.gif, :alt=>'Programming', :size=>'100x20', :border=>0),
> :update => "select01_div",
> :url =>{ :action => :select01_action }) %>
>
>
>

http://www.rubyonrails.org...

--
Phillip "CynicalRyan" Gawlowski
http://cynicalryan....
http://clothred.rub...

Rule of Open-Source Programming #5:

A project is never finished.