# Grabbing banners from other sites

**URL:** <https://www.ruby-forum.com/t/grabbing-banners-from-other-sites/102760>\
**Category:** Ruby\
**Created:** [April 27, 2007, 1:05am UTC](https://www.ruby-forum.com/t/grabbing-banners-from-other-sites/102760 "2007-04-27T01:05:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 27, 2007, 1:05am UTC](https://www.ruby-forum.com/t/grabbing-banners-from-other-sites/102760/1 "2007-04-27T01:05:48Z")

</div>

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](http://globalwarmingawareness2007.org.uk) /graphics/  
select01.gif, :alt=\>‘Programming’, :size=\>‘100x20’, :border=\>0),  
:update =\> “select01\_div”,  
:url =\>{ :action =\> :select01\_action }) %\>

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 27, 2007, 7:06am UTC](https://www.ruby-forum.com/t/grabbing-banners-from-other-sites/102760/2 "2007-04-27T07:06:09Z")

</div>

removed\_email\_address@domain.invalid wrote:

> images to be local even if we do http://?
> 
> \<%= link\_to\_remote( image\_tag(http://  
> [globalwarmingawareness2007.org.uk](http://globalwarmingawareness2007.org.uk) /graphics/  
> select01.gif, :alt=\>‘Programming’, :size=\>‘100x20’, :border=\>0),  
> :update =\> “select01\_div”,  
> :url =\>{ :action =\> :select01\_action }) %\>

> **[Ruby on Rails](https://rubyonrails.org)**
>
> A web-app framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern.

–  
Phillip “CynicalRyan” Gawlowski  
[http://cynicalryan.110mb.com/](http://cynicalryan.110mb.com/)  
[http://clothred.rubyforge.org](http://clothred.rubyforge.org)

Rule of Open-Source Programming #5:

A project is never finished.
