class ActionDispatch::Routing::Mapper
Public Instance Methods
curate_for(opts=nil)
click to toggle source
# File lib/curate/rails/routes.rb, line 5 def curate_for opts=nil Deprecation.warn Mapper, "curate_for no longer accepts any arguments. You provided: #{opts.inspect}" if opts scope module: 'curate' do resources 'collections', 'profiles', 'profile_sections', controller: 'collections' do collection do get :add_member_form put :add_member put :remove_member end end resources 'people', only: [:show, :index] do resources :depositors, only: [:index, :create, :destroy] end match 'profile' => 'user_profiles#show', via: :get, as: 'user_profile' end resources :downloads, only: [:show] namespace :curation_concern, path: :concern do Curate.configuration.registered_curation_concern_types.map(&:tableize).each do |container| resources container, except: [:index] end resources( :permissions, only:[]) do member do get :confirm post :copy end end resources( :linked_resources, only: [:new, :create], path: 'container/:parent_id/linked_resources') resources( :linked_resources, only: [:show, :edit, :update, :destroy]) resources( :generic_files, only: [:new, :create], path: 'container/:parent_id/generic_files') resources( :generic_files, only: [:show, :edit, :update, :destroy]) do member do get :versions put :rollback end end end resources :terms_of_service_agreements, only: [:new, :create] resources :help_requests, only: [:new, :create] resources :classify_concerns, only: [:new, :create] match "show/:id" => "common_objects#show", via: :get, as: "common_object" match "show/stub/:id" => "common_objects#show_stub_information", via: :get, as: "common_object_stub_information" match 'users/:id/edit' => 'users#edit', via: :get, as: 'edit_user' #scope module: 'hydramata' do namespace :hydramata do resources 'groups' end end