I have a controller with an action that is being hit remotely, after which my controller_action.js.erb
file is run.
Within my controller's action, I am setting a variable @successful = true|false
(true|false based on the return value of a function).
Within my javascript file, I want to say if @successful
and either alert that the action was successful or alert that it was not.
Any idea how to do this?