Hello-
I have an application where I would like to issue Ruby commands from a
Rails application and pipe the resulting stuff from the command line
into a Rails variable.
Does anyone have a good way to do this?
Example:
Call to Ruby P.:
ruby callFunction.rb some_params ( where ‘some_params’ is given from a form in the Rails app)
Results Returned:
result - answer1
result - answer2
…
Ideally then I could have these results stored in a variable to put in
my view.
Thanks, let me know if this is not clear!