Skip to content

Commit

Permalink
add nested route to allow user to add positions to profile
Browse files Browse the repository at this point in the history
  • Loading branch information
christinalcole committed Mar 17, 2018
1 parent 9c6cd29 commit 44290d9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@

resources :users do
scope module: :users do
resources :positions, only: [:index]
resources :positions, only: [:index, :create, :new]
resources :boats
end
end

resources :positions, except: [:show]
resources :positions, except: [:show] do
scope module: :positions do
resources :users, only: [:index]
end
end

resources :boats, only: [:index, :show]

Expand Down

0 comments on commit 44290d9

Please sign in to comment.