Sha256: 4abb25d715cce1e148b51e5b548ffa07118f8781dbdb69c625679758636ccf03

Contents?: true

Size: 391 Bytes

Versions: 6

Compression:

Stored size: 391 Bytes

Contents

Rails.application.routes.draw do
  base_path = 'admin'

  scope :path => base_path, :module => :e9_attributes do
    resources :menu_options, :except => [:show] do
      collection { post :update_order }
    end

    %w(
      menu_options
    ).each do |path|
      get "/#{path}/:id", :to => redirect("/#{base_path}/#{path}/%{id}/edit"), :constraints => { :id => /\d+/ }
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
e9_attributes-0.0.6 config/routes.rb
e9_attributes-0.0.5 config/routes.rb
e9_attributes-0.0.4 config/routes.rb
e9_attributes-0.0.3 config/routes.rb
e9_attributes-0.0.2 config/routes.rb
e9_attributes-0.0.1 config/routes.rb