As I understand it, REST is a way of communication between system components. System components, such as a browser or a server, communicate through requests for representations of resources. For example, a web browser (system component) requests today's date (representation of resource) to the server.
Rails supports REST, which is represented as a way of organizing the files in your application. For example, naming our controller actions with CRUD-based names and using named routes, is a convention that permits Rails to know what to map to where, and therefore allows for code like
Rails supports REST, which is represented as a way of organizing the files in your application. For example, naming our controller actions with CRUD-based names and using named routes, is a convention that permits Rails to know what to map to where, and therefore allows for code like
resources :users
in your routes.
Isabel likes this.