Sha256: 1cdbc3d5e2f7a1bf5f43c14816c6ff013f670b1960ad47cb2f7b3b7e4b8fa412

Contents?: true

Size: 732 Bytes

Versions: 38

Compression:

Stored size: 732 Bytes

Contents

module Noodall
  class Admin::FieldsController < Noodall::Admin::BaseController
    include SortableTable::App::Controllers::ApplicationController
    # too long on the form builder and the system kicks you out
    before_filter :sign_in_required, :except => [:new]
    
    def new
    
      field = "Noodall::#{params[:type].classify}".constantize
      # check that field class exists
      if defined?(field)
        @field = field.new
        
        respond_to do |format|
          format.html { render :layout => false, :partial => "noodall/admin/fields/#{params[:type]}", :locals => {:field => @field, :index => params[:index].to_i}}
          format.xml  { render :xml => @forms }
        end
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

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