Skip to content

Commit

Permalink
#2 Move show method out of engine routes
Browse files Browse the repository at this point in the history
  • Loading branch information
marjinal1st committed Jan 3, 2014
1 parent 27b9415 commit e14b170
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/kebapage/static_pages/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
%td
= truncate static_page.content, length: 25
%td.action
%a.btn.btn-success{href: static_page_path(static_page), data: { toggle: 'tooltip'}, title: 'Zoom'}
%a.btn.btn-success{href: main_app.pages_path(static_page), data: { toggle: 'tooltip'}, title: 'Zoom'}
%i.icon-zoom-in
%a.btn.btn-info{href: edit_static_page_path(static_page)}
%i.icon-edit
Expand Down
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Kebapage::Engine.routes.draw do
resources :static_pages
resources :static_pages, except: [:show]
root 'static_pages#index'
end

0 comments on commit e14b170

Please sign in to comment.