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