I've got my RESTful resource all setup. However, there is no editing or destroying allowed. What's the preferred way to disable those?
- remove the action? (don't like this idea)
- redirect within the action skipping the actual edit/destroy call?
- returning an error? (is there a standard here?)
remove the action (method) from the controller. if you don't want
code to be executed, don't provide the code to execute.
The drawback to this is that a RESTful client isn't going to get any
notification about why those actions/verbs don't work. It would be
nice to provide an error message of some sort "This functionality is
intentionally not enabled...." or something.
Doesn't look like there is a preferred way so I'll just roll my own.