Created
July 17, 2012 07:40
-
-
Save shu0115/3127838 to your computer and use it in GitHub Desktop.
基本的なルーティング設定
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
基本的なルーティング設定。
omniauth用のルーティングとroot以外は全て「match ':controller(/:action(/:id))(.:format)'」で受け取る。
RESTは不採用。