Can you please post the entire content of routes.rb. And what is your
rails version and any other routes based plugins are installed in your
application?
It just means that it’s a GET request from your browser as opposed to POST, PUT, or DELETE http methods. For example: GET would be used when you want to simply load a page, POST would be used if you wanted to submit a form.
Yes but I just have resource :operator_session in my routes.rb.
My question is: why rails put automatically that get
“operator_session/destroy”?
It just means that it’s a GET request from your browser as opposed to
POST, PUT, or DELETE http methods. For example: GET would be used when
you want to simply load a page, POST would be used if you wanted to
submit a form.
This is all pretty well documented in the rails guides:
What command line did you use to generate it ? If you specify only one
action I think it assumes that it’s a GET request even though destroy
would usually correspond with a DELETE request. I suggest you delete the
line and forget about it.