Forum: Typo undefined local variable or method `published_articles'

C19d150417f5b4f2405f376a46c364c9?d=identicon&s=25 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
0196ff65610046d2f8ba58bc4a45f144?d=identicon&s=25 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.
C19d150417f5b4f2405f376a46c364c9?d=identicon&s=25 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 :
C19d150417f5b4f2405f376a46c364c9?d=identicon&s=25 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 :
This topic is locked and can not be replied to.