Forum: Typo how load plugin

Posted by Darius (Guest)
on 2009-03-08 09: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 ?
|
Posted by de Villamil Frédéric (Guest)
on 2009-03-08 12: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
frederic@de-villamil.com                        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
frederic@de-villamil.com                        tel: +33 (0)6 62 19 1337
http://t37.net                       Typo : http://typosphere.org
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.