gregbell/active_admin — Issue #1085: Formtastic deprecation warning (f.actions instead of f.buttons)
Author: dpmccabe
Created: 2012-02-28 22:25:16+00:00
State: open

In my form blocks, I'm using code like this:

```ruby

form do |f|
f.inputs do
f.input :price
f.input :shipping_price
end
f.buttons
end
```

With activeadmin (0.4.2) and formtastic (2.1.0), I get this deprecation warning:

```
DEPRECATION WARNING: f.buttons is deprecated in favour of f.actions and will be removed from Formtastic after 2.1. Please see ActionsHelper and InputAction or ButtonAction for more information. (called from block (2 levels) in at /Users/Devin/Sites/exampleapp/app/admin/products.rb:37)
DEPRECATION WARNING: f.commit_button is deprecated in favour of f.action(:submit) and will be removed from Formtastic after 2.1. Please see ActionsHelper and InputAction or ButtonAction for more information. (called from block (2 levels) in at /Users/Devin/Sites/exampleapp/app/admin/products.rb:37)
Rendered /Users/Devin/.rvm/gems/ruby-1.9.2-p180@rails31/gems/activeadmin-0.4.2/app/views/active_admin/resource/edit.html.arb (709.8ms)
```

I tried changing `f.buttons` to `f.actions`, but then my form doesn't display at all.