RESTful behavior for Rails controllers