Remove some broken references to anonymous controller

This commit is contained in:
Ben Lavender 2017-06-19 16:37:38 -05:00
Родитель cf408637ee
Коммит d481ed5869
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -24,7 +24,8 @@ Some routing boilerplate is required in `config/routes.rb`:
```ruby
Rails.application.routes.draw do
post "/_chatops/:chatop", controller: "anonymous", action: :execute_chatop
# Replace the controller: argument with your controller's name
post "/_chatops/:chatop", controller: "chatops", action: :execute_chatop
get "/_chatops" => "chatops#list"
end
```
@ -146,13 +147,13 @@ To work around this, you need to update your router boilerplate:
This:
```ruby
post "/_chatops/:action", controller: "anonymous"
post "/_chatops/:action", controller: "chatops"
```
Becomes this:
```ruby
post "/_chatops/:chatop", controller: "anonymous", action: :execute_chatop
post "/_chatops/:chatop", controller: "chatops" action: :execute_chatop
```
##### Adding a prefix