質問編集履歴
1
routesファイルの追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -165,6 +165,51 @@
|
|
165
165
|
<% end %>
|
166
166
|
</div>
|
167
167
|
```
|
168
|
+
```routes.rb
|
169
|
+
Rails.application.routes.draw do
|
170
|
+
root to: 'public/homes#top'
|
171
|
+
|
172
|
+
get "about"=>"public/homes#about"
|
173
|
+
get 'customers/edit' => "public/customers#edit"
|
174
|
+
patch 'customers' => "public/customers#update"
|
175
|
+
|
176
|
+
devise_for :customers,skip: [:passwords], controllers: {
|
177
|
+
registrations: "public/registrations",
|
178
|
+
sessions: 'public/sessions'
|
179
|
+
}
|
180
|
+
scope module: :public do
|
181
|
+
resources :items, only: [:index, :show]
|
182
|
+
|
183
|
+
get 'customers/my_page' => "customers#show"
|
184
|
+
get 'customers/unsubscribe' => "customers#unsubscribe"
|
185
|
+
patch 'customers/withdraw' => "customers#withdraw"
|
186
|
+
|
187
|
+
resources :cart_items, only: [:index, :update, :destroy, :create]
|
188
|
+
delete 'cart_item/destroy_all' => "cart_items#destroy_all"
|
189
|
+
|
190
|
+
resources :orders, only: [:new, :create, :index, :show]
|
191
|
+
post 'orders/confirm' => "orders#confirm"
|
192
|
+
get 'orders/complete' => "orders#complete"
|
193
|
+
end
|
194
|
+
|
195
|
+
scope module: :customer do
|
196
|
+
resources :addresses, only: [:index, :edit, :create, :update, :destroy]
|
197
|
+
end
|
198
|
+
|
199
|
+
devise_for :admin, skip: [:registrations, :passwords] ,controllers: {
|
200
|
+
sessions: "admin/sessions"
|
201
|
+
}
|
202
|
+
|
203
|
+
namespace :admin do
|
204
|
+
get "/" => "homes#top"
|
205
|
+
resources :items, only: [:index, :new, :create, :show, :edit, :update]
|
206
|
+
resources :genres, only: [:index, :create, :edit, :update]
|
207
|
+
resources :customers, only: [:index, :show, :edit, :update]
|
208
|
+
resources :orders, only: [:index, :show, :update]
|
209
|
+
resources :order_details, only: [:update]
|
210
|
+
end
|
211
|
+
end
|
212
|
+
```
|
168
213
|
そして次のが問題の読み込まれていないviewです。
|
169
214
|
```complete.html.erb
|
170
215
|
<div class="container">
|