Sha256: 8e1789b148369517e215e84af69fa1afa1f6b1b1434157b12092281ebc1a8a7d

Contents?: true

Size: 313 Bytes

Versions: 83

Compression:

Stored size: 313 Bytes

Contents

# This is for controllers that have simple forms that just use a modal
module Tenon
  class SimpleResourcesController < Tenon::ResourcesController
    def index
      self.resource = klass.new
      super
    end

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

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
tenon-1.1.8 app/controllers/tenon/simple_resources_controller.rb
tenon-1.1.7 app/controllers/tenon/simple_resources_controller.rb
tenon-1.1.6 app/controllers/tenon/simple_resources_controller.rb
tenon-1.1.5 app/controllers/tenon/simple_resources_controller.rb
tenon-1.1.4 app/controllers/tenon/simple_resources_controller.rb
tenon-1.1.3 app/controllers/tenon/simple_resources_controller.rb
tenon-1.1.2 app/controllers/tenon/simple_resources_controller.rb
tenon-1.1.1 app/controllers/tenon/simple_resources_controller.rb
tenon-1.0.76 app/controllers/tenon/simple_resources_controller.rb
tenon-1.0.75 app/controllers/tenon/simple_resources_controller.rb
tenon-1.0.74 app/controllers/tenon/simple_resources_controller.rb
tenon-1.0.73 app/controllers/tenon/simple_resources_controller.rb
tenon-1.0.72 app/controllers/tenon/simple_resources_controller.rb
tenon-1.0.71 app/controllers/tenon/simple_resources_controller.rb
tenon-1.0.70 app/controllers/tenon/simple_resources_controller.rb
tenon-1.0.69 app/controllers/tenon/simple_resources_controller.rb
tenon-1.0.68 app/controllers/tenon/simple_resources_controller.rb
tenon-1.0.67 app/controllers/tenon/simple_resources_controller.rb
tenon-1.0.66 app/controllers/tenon/simple_resources_controller.rb
tenon-1.0.65 app/controllers/tenon/simple_resources_controller.rb