Sha256: 450f443f9b905fdba1005d92910a1caff7193de446bbdd84fc360934d190569e

Contents?: true

Size: 536 Bytes

Versions: 8

Compression:

Stored size: 536 Bytes

Contents

class Inkling::ProxyingController < Inkling::BaseController

  def new
    content_type = params[:content_type]
    bits = content_type.split("::")
    model_name = bits.last
    @proxy_path = "new_inkling_content_types_#{model_name}_path".downcase
    redirect_to eval(@proxy_path)
  end

  def edit
    debugger
    content_type = params[:content_type]
    bits = content_type.split("::")
    model_name = bits.last
    @proxy_path = "new_inkling_content_types_#{model_name}_path".downcase
    redirect_to eval(@proxy_path)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
inkling-0.1.0 app/controllers/inkling/proxying_controller.rb
inkling-0.0.9 app/controllers/inkling/proxying_controller.rb
inkling-0.0.8 app/controllers/inkling/proxying_controller.rb
inkling-0.0.7 app/controllers/inkling/proxying_controller.rb
inkling-0.0.5 app/controllers/inkling/proxying_controller.rb
inkling-0.0.4 app/controllers/inkling/proxying_controller.rb
inkling-0.0.3a app/controllers/inkling/proxying_controller.rb
inkling-0.0.3 app/controllers/inkling/proxying_controller.rb