Executing ruby code withing a ruby app

F

Fernand Galiana

Hi,

I have some ruby code stached away in a database table. I would like to
run this code within my ruby application.
How can I do it ?

For example say I have the following method:

def run_some_script
ruby_code = Mytable.ruby_code # Where Mytable is an ActiveRecord
object that references a db table which contains some ruby script

# Now I want to run the ruby script that is in the db table and
return the result of the execution
end

Thank you all for the help...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,049
Latest member
Allen00Reed

Latest Threads

Top