gregbell/active_admin — pull request #1140 by HectorMalot (2012-03-15 23:04:49+00:00)
Title: updated form_builder to adhere to the new formtastic spec (Issue #1085)

This relates to issue #1085. Updates the code so that:

1. New methods (#actions, #action, #commit_action_with_cancel_link
2. All calls to #buttons, #commit_button, and #commit_button_with_cancel_link will receive a depreciation warning and then call their new corresponding method as an action. In the case of #commit_button, some parsing is done to translate the string that can be passed to #commit_button as part of the option has passed to #action(:submit).
3. Small update to CSS that makes `.action` equivalent to `.button`

This does assume that active_admin eventually wants to change the syntax to f.actions etc together with formtastic, and depreciate the f.buttons syntax. Something that might need some more discussion?