Forum: Typo undefined local variable or method `published_articles'

Posted by Denis FABIEN (Guest)
on 2008-02-29 14:44
(Received via mailing list)
Hi

I've installed typo via svn on a mongrel/nginx server. All was ok except
on thing.

When i go to read an article, i've got this message :
undefined local variable or method `published_articles' for #.

You can see my trouble here :
http://beta.miseajour.net/articles/2008/02/27/test

Someone can help me ?

Thanks
Posted by Piers Cawley (Guest)
on 2008-02-29 21:12
(Received via mailing list)
On Fri, Feb 29, 2008 at 1:42 PM, Denis FABIEN
<denis@recettesdefamille.com> wrote:
> Hi
>
>  I've installed typo via svn on a mongrel/nginx server. All was ok except
>  on thing.
>
>  When i go to read an article, i've got this message :
>  undefined local variable or method `published_articles' for #.
>
>  You can see my trouble here :
>  http://beta.miseajour.net/articles/2008/02/27/test

Strange, i thought I'd got rid of all the calls to that method when I
started turning Blog back into a singleton. There was a a broken svn
version for a while, but it should have been fixed with r1667. If you
do an svn up and still have a problem, it'd be good to see the log
entry for the failed request.
Posted by Denis FABIEN (Guest)
on 2008-02-29 21:26
(Received via mailing list)
I made already made svn up.

Here is a part of my log :

NameError (undefined local variable or method `published_articles' for
#<Blog:0x2aaaaecb80d0>):

/vendor/rails/activerecord/lib/active_record/attribute_methods.rb:206:in
`method_missing'
    /app/models/blog.rb:190:in `requested_article'
    /app/controllers/articles_controller.rb:38:in `show'
...

Piers Cawley a écrit :
Posted by Denis FABIEN (Guest)
on 2008-02-29 22:28
(Received via mailing list)
I solve my trouble

using ... gem update

Sometime I stupid, don't try this before ask the list, sorry about it


Denis FABIEN a écrit :
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.