Sha256: 13358b8c852e354abb2dc31f658c3e4e1b27c41efba4d9cfb286484307384c5d

Contents?: true

Size: 1.09 KB

Versions: 2

Compression:

Stored size: 1.09 KB

Contents

ActionController::Routing::Routes.draw do |map|
  # The priority is based upon order of creation: first created -> highest priority.
  
  # Sample of regular route:
  # map.connect 'products/:id', :controller => 'catalog', :action => 'view'
  # Keep in mind you can assign values other than :controller and :action

  # Sample of named route:
  # map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
  # This route can be invoked with purchase_url(:id => product.id)

  # You can have the root of your site routed by hooking up '' 
  # -- just remember to delete public/index.html.
  map.connect '', :controller => 'browser'
  
  map.connect '/show_bucket/:bucket_name', :controller => 'browser', :action => 'show_bucket'
  map.connect '/delete/:bucket_name', :controller => 'browser', :action => 'delete'
  map.connect '/delete/:bucket_name/:resource_key', :controller => 'browser', :action => 'delete'
  map.connect '/create_bucket', :controller => 'browser', :action => 'create_bucket'

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
s33r-0.4 examples/fores33r/config/routes.rb
s33r-0.4.1 examples/fores33r/config/routes.rb