28
Jun 06
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.
3 comments - add your's now
TOPICS
ON TWITTER
- After a two year hiatus, we are bringing the Link Building Blog back from the grave. 2009-08-26
- More updates...
ARCHIVES
- May 2010
- April 2010
- November 2009
- September 2009
- August 2009
- October 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005
- September 2005
- August 2005
- July 2005
- June 2005
- May 2005
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.
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?
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