Sha256: f250277727b50fd1f76016bd919507ae156e365ad422213e96888b0056195691

Contents?: true

Size: 925 Bytes

Versions: 20

Compression:

Stored size: 925 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
                    put :mark_as_spam
                    put :mark_as_not_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

20 entries across 20 versions & 1 rubygems

Version Path
noodall-form-builder-0.5.4 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.5.3 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.5.2 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.5.0 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.4.2 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.4.1 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.4.0 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.3.3 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.2.11 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.3.2 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.3.1 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.3.0 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.2.10 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.2.9 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.2.8 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.2.7 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.2.5 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.2.4 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.2.3 lib/noodall/form_builder/routes.rb
noodall-form-builder-0.2.2 lib/noodall/form_builder/routes.rb