I’d like to define a model as a resource to get all the REST URLs.
But, I’d like to disable some of the generated routes (e.g., DELETE). Is there an easy API for this, or do I just need to declare all the routes individually?
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 have two ways of doing this
in config/routes.rb
1) as @emm, suggested define only the routes you want
2) use except keyword to
excluderoutesread more here
HTH