I have a very basic website where a user inputs text to a text field form and submits this text. The text then is supposed to be a parameter for a Ruby script, which will in turn return data based on this supplied text.
My questions:
- Can you execute a Ruby script from a Controller?
- If yes, what if this Ruby script takes a few minutes until it returns data? Delayed job?
- Instead of running a Ruby script, can I import the function from this Ruby script into my controller?
I am still a novice to Rails so I thank you for any suggestions.