Conrad Taylor wrote:
[...]
> Yes, it's possible to execute a Ruby script from Rails.  Please remember
> that Rails is implemented in Ruby and you can use an method called 
> 'system'.

If the external script is in Ruby, then it probably makes more sense to 
use require and load it as part of the Rails app, rather than using 
system to call it.  You'll get better integration and not have to spawn 
a separate shell.

> 
> Good luck,
> 
> -Conrad

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
-- 
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 [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