Skip to content

Commit

Permalink
Add field block info
Browse files Browse the repository at this point in the history
  • Loading branch information
galetahub committed Sep 7, 2014
1 parent accb324 commit 849ead9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ class SunriseProduct < Sunrise::AbstractModel
field :title
field :price
field :total_stock
field :notes

field do |form, record|
form.input :notes, :as => :text, :id => record.id
end

group :sidebar, :holder => :sidebar do
field :sale_limit_id, :collection => lambda { SaleLimit.all }, :include_blank => false
Expand Down

0 comments on commit 849ead9

Please sign in to comment.