Skip to content

Instantly share code, notes, and snippets.

@yamaaki
Last active September 21, 2015 16:51
Show Gist options
  • Save yamaaki/13b47f96219b375b32e4 to your computer and use it in GitHub Desktop.
Save yamaaki/13b47f96219b375b32e4 to your computer and use it in GitHub Desktop.
Rails.application.routes.draw do
mount API => '/api/'
get 'welcome/index'
root to: 'welcome#index'
devise_for :members, path: :member, controllers: {
registrations: 'member/members/registrations',
sessions: 'member/members/sessions',
}
namespace :member do
get 'welcome/index'
root to: 'welcome#index'
end
match '*path' => 'application#error404', via: :all
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment