How to use Rails in stand alone rb-file

0 views
Skip to first unread message

Andrev Titov

unread,
Jul 14, 2008, 4:48:57 AM7/14/08
to rubyonra...@googlegroups.com
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?
--
Posted via http://www.ruby-forum.com/.

Andrev Titov

unread,
Jul 14, 2008, 4:56:42 AM7/14/08
to rubyonra...@googlegroups.com
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

Reply all
Reply to author
Forward
0 new messages