Forum: Typo how load plugin

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.
Darius (Guest)
on 2009-03-08 10:55
(Received via mailing list)
Hi,

I try load related_posts plugin from
http://github.com/fdv/typo_related_posts/trunk, install successful. But
get error:

|undefined local variable or method `render_related_posts' for 
#<ActionView::Base:0xb63fa104>

it seems like plugin aren't load, but how load it ?
|
de Villamil Frédéric (Guest)
on 2009-03-08 13:44
(Received via mailing list)
Le 8 mars 09 à 09:52, Darius a écrit :

>
Hello,

This plugin was coded very quickly, without a real release purpose
(for my own use)...

The readme is wrong, to install it you need to

./script/plugin install git://github.com/fdv/typo_related_posts.git

or

git clone git://github.com/fdv/typo_related_posts.git
and move the typo_related_posts directory into you Typo vendor/plugins

Then, you need to call it in the read.html.erb of your theme:

<%= render_related_posts %>

Oh, and I fear you'll have to translate it because it has 99.9% of
chances to be in french.

Regards,
Frédéric
--
Frédéric de Villamil
"What's mine is mine. What's yours is still unsetteled" – Go player
proverb
removed_email_address@domain.invalid                        tel: +33 (0)6 62 19 
1337
http://t37.net                       Typo : http://typosphere.org



--
Frédéric de Villamil
"What's mine is mine. What's yours is still unsetteled" – Go player
proverb
removed_email_address@domain.invalid                        tel: +33 (0)6 62 19 
1337
http://t37.net                       Typo : http://typosphere.org
This topic is locked and can not be replied to.