Using juggernaut and redis in our application, which sends multiple request to our rails controller because of which double render error is thrown.
We have render :nothing => true in our rails controller.
Any idea to fix this exception?
We are using rails 2.3.
Controller Code:
def store_status
@store = Store.find params[:id]
@store.update_attributes(:stauts => 1)
render :nothing => true
end
Edit:
Sorry the reason for this double render error is because some exception is raised after the call to render :nothing => true which is catched in my application controller. The rescue exception block contains another render so the double render error was raised. Any idea to find if there is already a render and then render in the rescue block?