Essentially I’m trying to combine the two resource declarations into one command.
resource :documents, only: [:create, :destroy]
resource :documents do
collection :sort
end
I tried mixing the two together, I don’t want all the extra methods rails gives you by default.
Obviously
resource :documents, only: [:create, :destroy] do
collection :sort
end
didn’t work.
Instead of:
try something like: