Sha256: 5f6205a798598bd6c8e9c6ec78eb492cbca8f583d0f227a2ab7d2554b836355c

Contents?: true

Size: 1.53 KB

Versions: 9

Compression:

Stored size: 1.53 KB

Contents

Rails.application.routes.draw do

  namespace(:admin_data) do
    match '/feed/:klasss' => "feed#index", :defaults => { :format =>'rss' }, :as => :feed
  end

  namespace(:admin_data) do
    scope :admin_data do

      controller "crud" do
        match '/klass/(:klass)',                :to => :index,            :as => :index,           :via => :get
        match '/klass/(:klass)',                :to => :create,           :as => :index,           :via => :post
        match '/klass/:klass/new',              :to => :new,              :as => :new, :via => :get
        match '/klass/:klass/:id/del',          :to => :del,              :as => :del, :via => :delete
        match '/klass/:klass/:id/edit',         :to => :edit,             :as => :edit, :via => :get
        match '/klass/:klass/:id',              :to => :show,             :via => :get
        match '/klass/:klass/:id',              :to => :update,           :via => :put
        match '/klass/:klass/:id',              :to => :destroy,          :via => :delete
      end

      controller "migration" do
        match '/migration', :to => :index,  :as => :migration_information
        match '/jstest',    :to => :jstest, :as => :jstest
      end

      match '/table_structure/:klass' => "table_structure#index", :as => :table_structure
      match '/quick_search/:klass' => "search#quick_search", :as => :search
      match '/advance_search/:klass' => "search#advance_search", :as => :advance_search
      match '/public/*file' => "public#serve"
      root :to => "home#index"

    end
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
admin_data-1.1.8 config/routes.rb
admin_data-1.1.7 config/routes.rb
admin_data-1.1.6 config/routes.rb
admin_data-1.1.5 config/routes.rb
admin_data-1.1.4 config/routes.rb
admin_data-1.1.3 config/routes.rb
admin_data-1.1.2 config/routes.rb
admin_data-1.1.1 config/routes.rb
admin_data-1.1.0 config/routes.rb