-
Notifications
You must be signed in to change notification settings - Fork 373
Expand file tree
/
Copy pathroutes.rb
More file actions
26 lines (20 loc) · 831 Bytes
/
routes.rb
File metadata and controls
26 lines (20 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# frozen_string_literal: true
Rails.application.routes.draw do
get 'hello_world', to: 'hello_world#index'
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
# Serve websocket cable requests in-process
# mount ActionCable.server => '/cable'
root "pages#index"
get "simple", to: "pages#simple"
get "rescript", to: "pages#rescript"
get "no-router", to: "pages#no_router"
# React Router needs a wildcard
get "react-router(/*all)", to: "pages#index"
get "stimulus", to: "comments#stimulus"
get "horizontal-form", to: "comments#horizontal_form"
get "stacked-form", to: "comments#stacked_form"
get "inline-form", to: "comments#inline_form"
get "comment-list", to: "comments#comment_list"
resources :comments
mount ActionCable.server => "/cable"
end