teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

routes.rbを追記しました

2019/11/19 06:13

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -63,9 +63,30 @@
63
63
 
64
64
  ```
65
65
 
66
+ ```routes
67
+ Rails.application.routes.draw do
66
68
 
69
+ #フロント
70
+ root 'front_pages#home'
71
+ get '/about', to: 'front_pages#about'
72
+ get '/news', to: 'front_pages#news'
73
+ get '/works', to: 'front_pages#works'
74
+ get '/members', to: 'front_pages#members'
75
+ get '/contacts', to: 'front_pages#contacts'
67
76
 
77
+ #バックオフィス
78
+ namespace :bo_pages do
79
+ resources :admins, :news, :creations, :members
80
+ end
81
+ get '/bo_pages', to: 'bo_pages/home#index'
82
+ get '/bo_pages/login', to: 'bo_pages/login#index'
68
83
 
84
+ end
85
+ ```
86
+
87
+
88
+
89
+
69
90
  ### 試したこと
70
91
  ・application.jsにrequire jquery-ujsを書く/消す
71
92
  ・application.jsにrequire rails-ujsを書く/消す