Sha256: 2e7925bb53a84ce257e813e9e74d37a88e8ab843e1388c0836263b0842c0da2b
Contents?: true
Size: 865 Bytes
Versions: 12
Compression:
Stored size: 865 Bytes
Contents
# Need to open the AS module carefully due to Rails 2.3 lazy loading ActiveScaffold::Config::Core.class_eval do ActionDispatch::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_edit] = :get ActionDispatch::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_update] = :post ActionDispatch::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_new] = :get ActionDispatch::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_create] = :post #not working because routing picks show route instead #ActionDispatch::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_destroy] = :get #you may define a route for your controller before resource routes #match 'players/batch_destroy' => 'players#batch_destroy', :via => [:get] ActionDispatch::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_destroy] = :delete end
Version data entries
12 entries across 12 versions & 1 rubygems