Is it possible to drop a Ruby script (around 50 lines) into one of your
Rails pages? I am experimenting with doing this but I haven’t had any
in finding out how.
An example of what I am trying to do is to place a script like this
https://github.com/johnyerhot/rquote/blob/master/lib/rquote.rb and see
can’t drop it into a page like this simple view I made in Rails and have
print out the(stock) info on the page. I’ve already gotten it to print
a “Hello World” so I know everything is set up and running properly,
need to find out how to execute and print it to the page.
Here is the code for the script, the controller and view is this helps:
Thanks in advance,