Skip to content

Commit e14b170

Browse files
committed
#2 Move show method out of engine routes
1 parent 27b9415 commit e14b170

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/views/kebapage/static_pages/index.html.haml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
%td
2222
= truncate static_page.content, length: 25
2323
%td.action
24-
%a.btn.btn-success{href: static_page_path(static_page), data: { toggle: 'tooltip'}, title: 'Zoom'}
24+
%a.btn.btn-success{href: main_app.pages_path(static_page), data: { toggle: 'tooltip'}, title: 'Zoom'}
2525
%i.icon-zoom-in
2626
%a.btn.btn-info{href: edit_static_page_path(static_page)}
2727
%i.icon-edit

config/routes.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Kebapage::Engine.routes.draw do
2-
resources :static_pages
2+
resources :static_pages, except: [:show]
33
root 'static_pages#index'
44
end

0 commit comments

Comments
 (0)