|
|
|
|
@ -2,4 +2,5 @@ Rails.application.routes.draw do
|
|
|
|
|
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
|
|
|
|
|
get '/fruits', to: 'fruits#index'
|
|
|
|
|
# get('/fruits', { :to => 'fruits#index' })
|
|
|
|
|
get '/fruits/:id', to: 'fruits#show'
|
|
|
|
|
end
|
|
|
|
|
|