First the controller is executed by rails
Then the view is rendered
And that’s it
So there will be no way to again execute the controller after
the view has been rendered. This means, no communication from view to
the controller is possible. Only from controller to view. And that’s how
it
should be. If the decision in the view depends on some user action I
would
suggest using Ajax. Otherwise I would rethink your problem and solve it
in the controller where logic is supposed to be.