I would like to execute specific action rendering something into page
after each of my ajax calls. In example I would like to update some
div or display an alert.
How I imagine it could work is as follows
class ApplicationController < ActionController::Base
render :update do |page|
page << "alert(‘doing something!’);
Of course code above will yield with “Can only render or redirect once
per action”. How would You approach this problem?