File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ Some routing boilerplate is required in `config/routes.rb`:
2424
2525``` ruby
2626Rails .application.routes.draw do
27- post " /_chatops/:chatop" , controller: " anonymous" , action: :execute_chatop
27+ # Replace the controller: argument with your controller's name
28+ post " /_chatops/:chatop" , controller: " chatops" , action: :execute_chatop
2829 get " /_chatops" => " chatops#list"
2930end
3031```
@@ -146,13 +147,13 @@ To work around this, you need to update your router boilerplate:
146147This:
147148
148149``` ruby
149- post " /_chatops/:action" , controller: " anonymous "
150+ post " /_chatops/:action" , controller: " chatops "
150151```
151152
152153Becomes this:
153154
154155``` ruby
155- post " /_chatops/:chatop" , controller: " anonymous " , action: :execute_chatop
156+ post " /_chatops/:chatop" , controller: " chatops " action: :execute_chatop
156157```
157158
158159##### Adding a prefix
You can’t perform that action at this time.
0 commit comments