docs/6-show-pages.md in activeadmin-1.0.0.pre5 vs docs/6-show-pages.md in activeadmin-1.0.0
- old
+ new
@@ -76,33 +76,5 @@
row('Published?') { |b| status_tag b.published? }
end
end
end
```
-
-# Tabs
-
-You can arrange content in tabs as shown below:
-
-```ruby
- ActiveAdmin.register Order do
- show do
- tabs do
- tab 'Overview' do
- attributes_table do
- row(:status) { status_tag(order.status) }
- row(:paid) { number_to_currency(order.amount_paid_in_dollars) }
- end
- end
-
- tab 'Payments' do
- table_for order.payments do
- column('Payment Type') { |p| p.payment_type.titleize }
- column('Received On', :created_at)
- column('Payment Details & Notes', :notes)
- column('Amount') { |p| number_to_currency(p.amount_in_dollars) }
- end
- end
- end
- end
- end
-```