Andrev Titov wrote:> Good Day.
> I want to run some rb-file via Cron, for inserting data in database. Is
> it possible to use Model from my project, in stand alone rb-file? What
> should i require in rb-File?
Thank`s for All,
I have just found it:
http://wiki.rubyonrails.org/rails/pages/HowToUseActiveRecordOutsideRails
--
Posted via http://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-/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
-~----------~----~----~----~------~----~------~--~---