How do I prevent users from calling a method “doAction” in my controller using GET requests? I only want it to be called using POST requests?
I heard I need to use “verify” but I’m unsure where to put that code, or how I need to use it.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can specify which methods are allowed for any action in your
routes.rb.Rails 2:
Rails 3: