Skip to content

Commit

Permalink
changed to => for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Dereje24 committed Mar 6, 2018
1 parent 7c0aaba commit 1865c8f
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@


# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
root to: 'home#index'
root => 'home#index'

get '/home', to: 'home#index'
get '/contact_us', to: 'home#contact', as: 'contact'
get '/sign_up', to: 'users#new', as: 'sign_up'
get '/login', to: 'session#new', as: 'login'
get '/user', to: 'users#show', as: 'user'
get '/home', => 'home#index'
get '/contact_us', => 'home#contact', as: 'contact'
get '/sign_up', => 'users#new', as: 'sign_up'
get '/login', => 'session#new', as: 'login'
get '/user', => 'users#show', as: 'user'

post '/contact_us', to: 'home#create'
post '/sign_up', to: 'users#create' , as: 'users'
post '/login', to: 'session#create', as:'user_login'
get '/logout', to: 'session#destroy' , as:'logout'
get '/map' , to: 'users#map'
post '/rent', to: 'rentals#create' , as:'rental'
get 'user/reservation', to: 'rentals#current', as:'current'
post '/drop' , to:'rentals#drop' , as: 'drop'
get '/user/history', to:'rentals#history',as:'history'
get '/history', to:'rentals#show'
post '/contact_us', => 'home#create'
post '/sign_up', => 'users#create' , as: 'users'
post '/login', => 'session#create', as:'user_login'
get '/logout', => 'session#destroy' , as:'logout'
get '/map' , => 'users#map'
post '/rent', => 'rentals#create' , as:'rental'
get 'user/reservation', => 'rentals#current', as:'current'
post '/drop' , =>'rentals#drop' , as: 'drop'
get '/user/history', =>'rentals#history',as:'history'
get '/history', =>:'rentals#show'
# get '/user/map', to: 'users#map'
end

Expand Down

0 comments on commit 1865c8f

Please sign in to comment.