Hi,

BACKGROUND:  I have a Ruby file I use via cron that makes use of my
Ruby on Rails application code (e.g. it uses a model file to create
records in the database).   When I run this via cron I use
"./script/runner filename.rb" and this works fine.

QUESTION:  I want to be able to run this file by itself (without
./script/runner) so I can debug it in Netbeans (e.g. right-click on
the file and go DEBUG).  What #includes's do I need to ensure the file
inherits what is required?

Note:  I did try including the first two lines in the ./script/runner
script in my, however this doesn't seem to work.  It just gives a "Run
'/Users/greg/source/bankalerts/lib/alerts/alert.rb -h' for help."



-- 
Greg
http://blog.gregnet.org/

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to