Sha256: 5c68fb95a70d61b2a5fb4d1ac62f6b960600498259410134cb8f9f6227f7c95e

Contents?: true

Size: 883 Bytes

Versions: 18

Compression:

Stored size: 883 Bytes

Contents

module Noodall
  module FormBuilder
    class Routes
      class << self
        def draw(app)
          app.routes.draw do
  
            namespace 'noodall', :as => 'noodall', :path => '' do
              resources :forms do
                resources :form_responses
              end
            end
          
            namespace 'noodall/admin', :as => 'noodall_admin', :path => 'admin' do
              resources :forms do
                resources :form_responses do
                  member do
                    get :mark_as_spam
                  end
                end
              end
              
              resources :fields do
                collection do
                  get :form
                end
              end
              match 'components/form/:type' => 'components#form'
            end
          end
        end
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
noodall-form-builder-0.2.1 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.2.0 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.1.3 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.1.2 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.1.1 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.1.0 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.0.13 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.0.11 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.0.10 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.0.9 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.0.8 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.0.7 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.0.6 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.0.5 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.0.4 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.0.3 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.0.2 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.0.1 lib/noodall/form_builder/routes.rb