Skip to content

Instantly share code, notes, and snippets.

@faizaankhan
Created October 29, 2019 18:51
Show Gist options
  • Save faizaankhan/205d3315e72d20af2fffa4149fd1699f to your computer and use it in GitHub Desktop.
Save faizaankhan/205d3315e72d20af2fffa4149fd1699f to your computer and use it in GitHub Desktop.
Rails.application.routes.draw do
scope "(:locale)", locale: /#{I18n.available_locales.join("|")}/ do
root to: 'associates#index'
end
devise_for :users
get 'welcome/index'
# patch 'associates/update'
get 'accept_request', to: 'associates#accept_request'
get 'cancel_request', to: 'associates#cancel_request'
get 'associates/index'
get 'associates/new'
get 'associates/edit'
put 'associates/update/:id', to: 'associates#update'
get 'sessions/new'
# get 'associates/show'
devise_scope :user do
get 'users/sign_in', to: 'devise/sessions#new'
get 'users/sign_up', to: 'devise/registrations#new'
get 'users/sign_out', to: 'devise/sessions#destroy'
end
resource:associates, :users do
end
end
# For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment