Class: Tenon::SimpleResourcesController

Inherits:
ResourcesController show all
Defined in:
app/controllers/tenon/simple_resources_controller.rb

Direct Known Subclasses

PostCategoriesController

Instance Method Summary collapse

Methods inherited from ResourcesController

#create, #destroy, #initialize, #new, #reorder, #update

Constructor Details

This class inherits a constructor from Tenon::ResourcesController

Instance Method Details

#editObject



9
10
11
# File 'app/controllers/tenon/simple_resources_controller.rb', line 9

def edit
  render partial: 'form', locals: { singular_name => resource }
end

#indexObject



4
5
6
7
# File 'app/controllers/tenon/simple_resources_controller.rb', line 4

def index
  self.resource = klass.new
  super
end