Skip to content

Instantly share code, notes, and snippets.

@shu0115
Created July 17, 2012 07:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shu0115/3127838 to your computer and use it in GitHub Desktop.
Save shu0115/3127838 to your computer and use it in GitHub Desktop.
基本的なルーティング設定
Rublio::Application.routes.draw do
# The priority is based upon order of creation:
# first created -> highest priority.
match "/auth/:provider/callback" => "sessions#callback"
match "/auth/failure" => "sessions#failure"
match "/logout" => "sessions#destroy", :as => :logout
# You can have the root of your site routed with "root"
# just remember to delete public/index.html.
# root :to => 'welcome#index'
root to: 'top#index'
# This is a legacy wild controller route that's not recommended for RESTful applications.
# Note: This route will make all actions in every controller accessible via GET requests.
# match ':controller(/:action(/:id))(.:format)'
match ':controller(/:action(/:id))(.:format)'
end
@shu0115
Copy link
Author

shu0115 commented Jul 17, 2012

基本的なルーティング設定。
omniauth用のルーティングとroot以外は全て「match ':controller(/:action(/:id))(.:format)'」で受け取る。
RESTは不採用。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment