Hi,
Can code in my cron job call methods from ApplicationController?
It needs to act as if a user called a function, which triggers a whole
lot of code that I have in the controller. I don''t want to separate
this to a library, because this way, the controller will look pretty
messy.
Is there any was I can require the application controller and then
call its methods from the cron job?
What I''m getting now is just:
NoMethodError: undefined method `create_message_in_chat'' for
#<PeriodicChecker:0xb6cc7b9c>
Thanks,
Helzer
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---