Is there a way to call or invoke a controller method from script/console
or script/runner? The reason is that I’d like to pre-cache some of the
actions on my controller.
The pseudo code below is what I’d like to be able to do:
class MyController < ApplicationController
puts ‘Hi there’
=> ‘Hi there’