Sha256: 767c8ed492cc7ff6a1cd4bb73263acb30d96a9970352424a39802902a4a294e9

Contents?: true

Size: 376 Bytes

Versions: 6

Compression:

Stored size: 376 Bytes

Contents

class <%= controller_name.camelize %> < Cardboard::ResourceController
  # uses inherited_resources. For more info see https://github.com/josevalim/inherited_resources
  actions :all, :except => [:show]

  # If you are not using strong parameters comment the method below
  def permitted_strong_parameters
    :all #or an array of parameters, example: [:name, :email]
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cardboard_cms-0.3.1 lib/generators/cardboard/resource/templates/admin_controller.rb
cardboard_cms-0.2.2 lib/generators/cardboard/resource/templates/admin_controller.rb
cardboard_cms-0.2.1 lib/generators/cardboard/resource/templates/admin_controller.rb
cardboard_cms-0.1.8 lib/generators/cardboard/resource/templates/admin_controller.rb
cardboard_cms-0.1.6 lib/generators/cardboard/resource/templates/admin_controller.rb
cardboard_cms-0.1.4 lib/generators/cardboard/resource/templates/admin_controller.rb