brought to you by TextLinkAds.com
28
Jun 06
by Patrick Gavin Text Link Ads News with 3 Comments

Publishers using Ruby On Rails looking to monetize their website can now use our new ad script to sell Text Link Ads!  Special thanks to Pascal for his help on the development of this ad script.

Bookmark and Share

3 comments - add your's now

#1
Pascal (06/29/06 at 2:06 am)

Thank you, Patrick.

Although it may be obvious for most people that know Ruby on Rails, you may want to mention that the first part of the code belongs in the controller, and the second in the view (.rhtml)

Pascal.

#2
Ryan (07/02/06 at 4:05 pm)

I placed the controller code in a new “ads” controller, and the view code in a corresponding “ads/content.rhtml” file and then attempted to call that from my main layout template by using “render_component(:controller => ‘ads’, :action => ‘content’)”.

I am receiving this error however on that bit of code:
ActionView::TemplateError (wrong number of arguments (0 for 1))

Any ideas why?

#3
Evan (02/05/07 at 5:25 pm)

Ryan you’re getting this because TLA uses a non-standard extension to the CgiResponse object.

You need to install the following plugin into your vendor/plugins directory:

http://svn.typosphere.org/typo/trunk/vendor/plugins/expiring_action_cache/

-Evan

+

Add your comment now

(will not be published)