In order to call a function inside the controller.rb file. You essentially have to use Ajax. The controller.rb is essentially the “code behind”. That code executes before the “view”/.erb. So if you have a method inside /app/controller.rb called :
You would need to use AJAX and the url would be ‘/app/my_method’
I see; my problem was a combination of this and trying to get the top level index to communicate with a controller: https://developer.motorolasolutions.com/message/3408#3
And if anyone else in the future needs to do this as well, keep this bug in mind: https://groups.google.com/forum/?fromgroups#!topic/rhomobile/zzOP3dDRDe8
I've got it working now, thanks!