config/routes.rb in popolo-0.0.2 vs config/routes.rb in popolo-0.0.3
- old
+ new
@@ -1,17 +1,9 @@
Popolo::Engine.routes.draw do
- resources :areas, only: [:index, :show]
- resources :organizations, only: [:index, :show]
- resources :people, only: [:index, :show]
- resources :posts, only: [:index, :show]
-
- match 'areas/*path/areas' => 'areas#nested_index', as: 'nested_areas'
- match 'areas/*path' => 'areas#nested_show', as: 'nested_area'
-
- match 'organizations/*path/organizations' => 'organizations#nested_index', as: 'nested_organizations'
- match 'organizations/*path/posts/:id' => 'organizations#post', as: 'nested_organization_post'
- match 'organizations/*path/posts' => 'organizations#posts', as: 'nested_organization_posts'
- match 'organizations/*path' => 'organizations#nested_show', as: 'nested_organization'
+ resources :organizations, only: [:index, :show], id: /.*/
+ resources :memberships, only: :show, id: /.*/
+ resources :people, only: :show, id: /.*/
+ resources :posts, only: :show, id: /.*/
# A host application will sometimes complain about a missing `root_path`, even
# if it defines a `root_path`. Setting a reasonable default here.
root to: 'organizations#index'
end