Especially if this method is accessing your models, I don't see a way around loading your entire rails environment.
I think a more common solution would be to create a rake task which you invoke with cron... On Feb 12, 10:53 pm, Valentino Lun <rails-mailing-l...@andreas-s.net> wrote: > Dear all > > I tried script/runner for this, but every execution need to initialize > the rails environment. Any other good idea for it? What is your > good/best practice? > > Many thanks > > Valentino > -- > Posted viahttp://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---