Class: Inkling::ProxyingController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/inkling/proxying_controller.rb

Instance Method Summary collapse

Instance Method Details

#editObject



11
12
13
14
15
16
17
18
# File 'app/controllers/inkling/proxying_controller.rb', line 11

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

#newObject



3
4
5
6
7
8
9
# File 'app/controllers/inkling/proxying_controller.rb', line 3

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