Sha256: b5ae81facffd06838c95cd293a1a677daeeb4f51befbeb7ddc5a727edf682d25

Contents?: true

Size: 356 Bytes

Versions: 9

Compression:

Stored size: 356 Bytes

Contents

Refinery::Application.routes.draw do
  resources :<%= class_name.pluralize.underscore.downcase %>, :only => [:index, :show]

  scope(:path => 'refinery', :as => 'admin', :module => 'admin') do
    resources :<%= class_name.pluralize.underscore.downcase %>, :except => :show do
      collection do
        post :update_positions
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
refinerycms-generators-1.0.1 lib/generators/refinery_engine/templates/config/routes.rb
refinerycms-generators-1.0.0 lib/generators/refinery_engine/templates/config/routes.rb
refinerycms-generators-0.9.9.6 lib/generators/refinery_engine/templates/config/routes.rb
refinerycms-generators-0.9.9.5 lib/generators/refinery_engine/templates/config/routes.rb
refinerycms-generators-0.9.9.4 lib/generators/refinery_engine/templates/config/routes.rb
refinerycms-generators-0.9.9.3 lib/generators/refinery_engine/templates/config/routes.rb
refinerycms-generators-0.9.9.2 lib/generators/refinery_engine/templates/config/routes.rb
refinerycms-generators-0.9.9.1 lib/generators/refinery_engine/templates/config/routes.rb
refinerycms-generators-0.9.9 lib/generators/refinery_engine/templates/config/routes.rb