Restricting Edit and Delete in Ruby on Rails

Posted by phleet on Stack Overflow See other posts from Stack Overflow or by phleet
Published on 2010-03-29T03:17:10Z Indexed on 2010/03/29 3:23 UTC
Read the original article Hit count: 238

Filed under:

I want to be able to edit and delete resources myself, but not allow users of the application to do so.

Is there an easy way of doing this in Rails?

An incomplete solution would be just to remove the "delete" and "edit" buttons from the index view, but that doesn't disable their ability to do so via direct HTTP requests.

Running Rails 2.2.2 and ruby 1.8.7

© Stack Overflow or respective owner

Related posts about ruby-on-rails