Please enable JavaScript.
Coggle requires JavaScript to display documents.
Routes (Resourceful Routes (resources :controllers (GET (index (resoucres…
Routes
-
admin/resources
namespace, scope module: multiple resources
module, path(not affect controller): singular resource
-
nest specific action(e.g :index, :new, :create)
-
concerns: shortcut setting to build nested resources
scope => customize url path
-
RESTful Action : for extra action of controller
member for specific resource
get 'action', on: :member => /controllers/:id/action
collection for public resources
get 'action', on: :collection => /controllers/action
-
basic usage
-
basic syntax
-
http_verb url, action:, controller:
-
-
-
-
-
-
-
Def : Recognizes URLs and dispatch them to a controller's action, or to Rack application, and it also generate path and URLs.