title: How to call a ruby on rails controller when view is loaded?
body: <p>I am pretty new to Rails, basically what I want to do is pretty simple, when the view is loaded I want it to call a controller that executes a ruby script and render the image generated by this script on my view, is this possible? Or should I call the script before the view is loaded and just retrieve the generated image?</p>