Sha256: f6dc68fa5f8c2b58456fb0535bedd17e385fd2315618dd62b8a8d9ab712fd04b

Contents?: true

Size: 291 Bytes

Versions: 1

Compression:

Stored size: 291 Bytes

Contents

class Admin::NewsController < Puffer::Base

  setup do
    group :news
  end

  index do
    field :title
    field :body
    field :renderable, :render => lambda { @record.title }
    field :renderable2, :render => :render_title
  end

  form do
    field :title
    field :body
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
puffer-0.1.0 spec/dummy/app/controllers/admin/news_controller.rb