Sha256: 6a995ad2d9602f45b606d2e872cede1d0a3f80a8987c1d69692d49f8a5228afe

Contents?: true

Size: 317 Bytes

Versions: 13

Compression:

Stored size: 317 Bytes

Contents

class <%= controller_name %>Controller < Puffer::Base

  setup do
    group :<%= @model_name.underscore.pluralize %>
  end

  index do
<% attributes.each do |attribute| -%>
    field :<%= attribute %>
<% end -%>
  end

  form do
<% attributes.each do |attribute| -%>
    field :<%= attribute %>
<% end -%>
  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
puffer-0.0.29 lib/generators/puffer/controller/templates/controller.rb
puffer-0.0.28 lib/generators/puffer/controller/templates/controller.rb
puffer-0.0.26 lib/generators/puffer/controller/templates/controller.rb
puffer-0.0.25 lib/generators/puffer/controller/templates/controller.rb
puffer-0.0.24 lib/generators/puffer/controller/templates/controller.rb
puffer-0.0.23 lib/generators/puffer/controller/templates/controller.rb
puffer-0.0.22 lib/generators/puffer/controller/templates/controller.rb
puffer-0.0.21 lib/generators/puffer/controller/templates/controller.rb
puffer-0.0.20 lib/generators/puffer/controller/templates/controller.rb
puffer-0.0.19 lib/generators/puffer/controller/templates/controller.rb
puffer-0.0.18 lib/generators/puffer/controller/templates/controller.rb
puffer-0.0.17 lib/generators/puffer/controller/templates/controller.rb
puffer-0.0.16 lib/generators/puffer/controller/templates/controller.rb