Sha256: 5c1930356ee37d9b0572e4850ced78370628d74e6b0089ce5e27833d66311386

Contents?: true

Size: 324 Bytes

Versions: 3

Compression:

Stored size: 324 Bytes

Contents

class Admin::PostsController < Puffer::Base

  setup do
    group :posting
  end

  index do
    field 'user.email'
    field :status
    field :title
    field :body
  end

  form do
    field :user
    field :status, :select => Post.statuses
    field :title
    field :body
    field :filename, :type => :file
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
puffer-0.0.29 spec/dummy/app/controllers/admin/posts_controller.rb
puffer-0.0.28 spec/dummy/app/controllers/admin/posts_controller.rb
puffer-0.0.26 spec/dummy/app/controllers/admin/posts_controller.rb