基本的に、2 つのリソース宣言を 1 つのコマンドに結合しようとしています。resource :documents, only: [:create, :destroy] resource :documents do collection :sort end
私は2つを混ぜてみました.レールがデフォルトで提供するすべての追加メソッドは必要ありません. 明らかに
resource :documents, only: [:create, :destroy] do
collection :sort
end
うまくいきませんでした。