Sha256: 6a91dfe3d27c5b6917ac1154310fb0e6ec639ec325f3160c6804aa2cbeec140d

Contents?: true

Size: 974 Bytes

Versions: 7

Compression:

Stored size: 974 Bytes

Contents

ActionController::Routing::Routes.draw do |map|
  # Add your own custom routes here.
  # The priority is based upon order of creation: first created -> highest priority.
  
  # Here's a sample route:
  # map.connect 'products/:id', :controller => 'catalog', :action => 'view'
  # Keep in mind you can assign values other than :controller and :action

  # You can have the root of your site routed by hooking up '' 
  # -- just remember to delete public/index.html.
  # map.connect '', :controller => "welcome"

  map.connect '', :controller => 'login'
  map.connect 'user/:username', :controller => 'server', :action => 'user_page'
  map.connect 'user/:username/xrds', :controller => 'server', :action => 'xrds'

  # Allow downloading Web Service WSDL as a file with an extension
  # instead of a file named 'wsdl'
  map.connect ':controller/service.wsdl', :action => 'wsdl'

  # Install the default route as the lowest priority.
  map.connect ':controller/:action/:id'
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ruby-openid-1.0 examples/rails_server/config/routes.rb
ruby-openid-1.1.1 examples/rails_server/config/routes.rb
ruby-openid-1.0.1 examples/rails_server/config/routes.rb
ruby-openid-1.1.4 examples/rails_server/config/routes.rb
ruby-openid-1.0.2 examples/rails_server/config/routes.rb
ruby-openid-1.1.2 examples/rails_server/config/routes.rb
ruby-openid-1.1.3 examples/rails_server/config/routes.rb