Problem with Suggest an Article

Arthur Del Esposte arthurmde at gmail.com
Wed Jan 15 16:15:34 BRST 2014


Nice work Rodrigo!!!

Thank you for your reply!

att,
Arthur


2014/1/15 Rodrigo Souto <rodrigo at colivre.coop.br>

> Hey Arthur,
>
> This is an extension load problem that happens only in development mode.
> The extension lib/noosfero/þlugin/spammable.rb adds this method
> "check_for_spam" to the module lib/spammable.rb. But since the way it's
> being loaded only load the extension in the boot (the first request),
> after the first request, the lib/spammable.rb module reloads but the
> extension lib/noosfero/plugin/spammable.rb doesn't. I fixed this problem
> by using this: http://apidock.com/rails/Rails/Configuration/to_prepare
> Take a look at the commit: fa2713e
>
> Arthur Del Esposte escreveu isso ai:
> > Hey guys,
> >
> > We are developing the AI2488 (
> http://noosfero.org/Development/ActionItem2488)
> > and an error has occurred on master branch when we try to suggest an
> > article, completing all fields normally. However when we send the article
> > we got the following error:
> >
> > NoMethodError in CmsController#suggest_an_article
> >
> > undefined method `check_for_spam' for #<SuggestArticle id: 51,
> >
> >
> >
> /home/gabriela/portal_noosfero/noosfero/vendor/plugins/delayed_job/lib/delayed/performable_method.rb:4:in
> > `initialize'
> >
> /home/gabriela/portal_noosfero/noosfero/vendor/plugins/delayed_job/lib/delayed/message_sending.rb:16:in
> > `new'
> >
> /home/gabriela/portal_noosfero/noosfero/vendor/plugins/delayed_job/lib/delayed/message_sending.rb:16:in
> > `method_missing'
> >
> /home/gabriela/portal_noosfero/noosfero/app/models/suggest_article.rb:21:in
> > `schedule_spam_checking'
> >
> /home/gabriela/portal_noosfero/noosfero/app/controllers/my_profile/cms_controller.rb:280:in
> > `suggest_an_article'
> >
> >
> > Does anybody know what can be causing the error?
> >
> > Thanks,
> >
> > att,
> > Arthur Del Esposte
>
> > _______________________________________________
> > Noosfero-dev mailing list
> > Noosfero-dev at listas.softwarelivre.org
> > http://listas.softwarelivre.org/cgi-bin/mailman/listinfo/noosfero-dev
>
>
> --
> Rodrigo Souto <rodrigo at colivre.coop.br> :: 55 71 8131-7714
> Colivre - Cooperativa de Tecnologias Livres
> http://www.colivre.coop.br/
>
> _______________________________________________
> Noosfero-dev mailing list
> Noosfero-dev at listas.softwarelivre.org
> http://listas.softwarelivre.org/cgi-bin/mailman/listinfo/noosfero-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20140115/2e8e61ad/attachment.html>


More information about the Noosfero-dev mailing list