Sha256: 96f93599524289f880a6b828a481c8aacad48bf51276188eeb3cdadfdbcda6d3

Contents?: true

Size: 957 Bytes

Versions: 5

Compression:

Stored size: 957 Bytes

Contents

ActionController::Routing::Routes.draw do |map|

  # Resources
  #
  map.resources :iterations do |i|
    i.resources :stories, :member => { :generate_feature => :get } do |r|
      r.resources :scenarios
    end
  end
  map.resources :outcomes
  map.resources :preconditions
  map.resources :releases
  map.resource :session
  map.resources :users, :member => { :suspend => :get, :activate => :get }

  # Named routes
  #
  map.client_generate '/stories/:id.:format', :controller => 'stories', :action => 'show'
  map.logout '/logout', :controller => 'sessions', :action => 'destroy'
  map.login '/login', :controller => 'sessions', :action => 'new'
  map.register '/register', :controller => 'users', :action => 'create'
  map.signup '/signup', :controller => 'users', :action => 'new'

  # Defaults
  #
  map.connect ':controller/:action/:id'
  map.connect ':controller/:action/:id.:format'

  # root_path
  #
  map.root :controller => :iterations

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
branston-0.6.6 lib/branston/config/routes.rb
branston-0.6.5 lib/branston/config/routes.rb
branston-0.6.4 lib/branston/config/routes.rb
branston-0.6.3 lib/branston/config/routes.rb
branston-0.6.2 lib/branston/config/routes.rb