Skip to content

Commit

Permalink
Allow correct routing of content_pages
Browse files Browse the repository at this point in the history
  • Loading branch information
akofink committed Aug 16, 2013
1 parent 5fdd922 commit 66426d4
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 172 deletions.
10 changes: 0 additions & 10 deletions app/controllers/pages_controller.rb

This file was deleted.

5 changes: 0 additions & 5 deletions app/views/pages/contact_us.html.erb

This file was deleted.

74 changes: 0 additions & 74 deletions app/views/pages/credits.html.erb

This file was deleted.

4 changes: 0 additions & 4 deletions app/views/pages/home.html.erb

This file was deleted.

77 changes: 0 additions & 77 deletions app/views/pages/site_admin.html.erb

This file was deleted.

4 changes: 2 additions & 2 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
resources :content_pages do
collection do
get :list
match ':id', action: :show
get ':page_name', action: :view
end
end

Expand Down Expand Up @@ -297,7 +297,7 @@
match '/menu/*name', controller: :menu_items, action: :link
match ':page_name', controller: :content_pages, action: :view, method: :get

root to: 'pages#home'
root to: 'content_pages#view', page_name: 'home'

map.connect 'question/select_questionnaire_type', :controller => "questionnaire", :action => 'select_questionnaire_type'
map.connect ':controller/service.wsdl', :action => 'wsdl'
Expand Down

0 comments on commit 66426d4

Please sign in to comment.