Sha256: c4d6b326547a2747b7ba083e55b6a63910b77f788253b232d41427725128a790

Contents?: true

Size: 823 Bytes

Versions: 8

Compression:

Stored size: 823 Bytes

Contents

Rails.application.routes.draw do
  resources :schools, :only => [:index, :create, :update, :edit]

  namespace 'admin' do
    resources :schools do
      member do
        get "migration/new", :action => :new_migration
        get "migration/:target_school_id/confirm", :action => :confirm_migration, :as => 'confirm_migration'
        post "migration/:target_school_id", 
             :action => :create_migration, 
             :constraints => { :target_school_id => /\d+/ }, 
             :as => 'create_migration'
      end
    end
  end

  # non-production routes
  unless Rails.env.production?
    namespace 'test' do
      get 'scidea_schools_qunit_tests', :to => 'scidea_schools_qunit_tests#index'
      get 'scidea_schools_qunit_tests/*test_names', :to => 'scidea_schools_qunit_tests#index'    
    end
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
scidea-schools-1.1 config/routes.rb
scidea-schools-1.0.6 config/routes.rb
scidea-schools-1.0.5 config/routes.rb
scidea-schools-1.0.4 config/routes.rb
scidea-schools-1.0.3 config/routes.rb
scidea-schools-1.0.2 config/routes.rb
scidea-schools-1.0.1 config/routes.rb
scidea-schools-1.0.0 config/routes.rb