Search code examples
ruby-on-railsrubygemscancan

What is a RESTful style resource?


I'm implementing cancan into my Rails 4 app. The documentation states "load_and_authorize_resource method is provided to automatically authorize all actions in a RESTful style resource controller."

https://github.com/ryanb/cancan

What is a RESTful style?

Thank you.


Solution

  • You can find a list of them here.

    The actions specifically are index, new, show, edit, destroy, create, update. The idea is there is a lot of boilerplate in general for these actions (find/authorize) and this aims to simplify that.