Skip to content

Commit

Permalink
Add Route names
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanbibat committed Jun 1, 2014
1 parent 559a5ac commit 32b24f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/routes.rb
@@ -1,7 +1,7 @@
AlingnenaApp::Application.routes.draw do
resources :debts

get 'products' => 'products#index'
get 'products/:id' => 'products#show'
get 'products' => 'products#index', :as => 'products'
get 'products/:id' => 'products#show', :as => 'product'

end

0 comments on commit 32b24f9

Please sign in to comment.