Is it possible to enforce a controller method to work only for specific HTTP methods?

Posted by Shay Friedman on Stack Overflow See other posts from Stack Overflow or by Shay Friedman
Published on 2010-06-05T20:51:21Z Indexed on 2010/06/05 21:02 UTC
Read the original article Hit count: 122

Filed under:

I was wondering if there was a way to make controller methods in rails available only for specific HTTP methods (GET, POST, etc.).

I guess I can create a filter to do that but it seems to me that it is something that is available out-of-the-box in rails.

Is it?

© Stack Overflow or respective owner

Related posts about ruby-on-rails