Class: Para::Admin::NestedFormsController
- Inherits:
-
ComponentController
- Object
- ActionController::Base
- Para::ApplicationController
- BaseController
- ComponentController
- Para::Admin::NestedFormsController
- Defined in:
- app/controllers/para/admin/nested_forms_controller.rb
Instance Method Summary collapse
Methods inherited from BaseController
#current_ability, #current_admin
Methods included from BaseHelper
#find_partial_for, #find_relation_name_for, #flash_message, #registered_components_options, #resource_title_for, #template_path_lookup
Methods included from Helpers::ResourceName
Methods inherited from Para::ApplicationController
Instance Method Details
#show ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'app/controllers/para/admin/nested_forms_controller.rb', line 4 def show @model = params[:model_name].constantize @object = params[:id] ? @model.find(params[:id]) : @model.new @object_name = params[:object_name] @builder_options = params[:builder_options]&.permit! || {} render layout: false end |