Class: DynamicFieldsets::FieldsetAssociatorsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/dynamic_fieldsets/fieldset_associators_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject

show all fieldset associators



7
8
9
10
11
12
13
# File 'app/controllers/dynamic_fieldsets/fieldset_associators_controller.rb', line 7

def index
  @fieldset_associators = DynamicFieldsets::FieldsetAssociator.all

  respond_to do |format|
    format.html
  end
end

#showObject

show one fieldset associator



16
17
18
19
20
21
# File 'app/controllers/dynamic_fieldsets/fieldset_associators_controller.rb', line 16

def show
  @fieldset_associator = DynamicFieldsets::FieldsetAssociator.find(params[:id])
  respond_to do |format|
    format.html
  end
end