We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3afedc1 commit 67630e4Copy full SHA for 67630e4
app/controllers/agents_controller.rb
@@ -123,9 +123,11 @@ def remove_messages
123
@agent.messages.delete_all
124
125
respond_to do |format|
126
- format.json do
127
- head :no_content
+ format.html do
+ redirect_back(fallback_location: agent_path(@agent),
128
+ notice: "Messages deleted for '#{@agent.name}'")
129
end
130
+ format.json { head :ok }
131
132
133
0 commit comments