undefined method actions #807

Closed
wejrowski opened this Issue Feb 22, 2012 · 1 comment

Comments

Projects
None yet
2 participants

I'm trying to create a custom submit button with custom text. On the documentation it says do:

  = f.actions do
    = f.action :submit, :as => :button
    = f.action :cancel, :as => :link

(haml)

..but I get undefined method error. I tried substituting actions for buttons and no luck.. only thing that works is f.buttons.. but I can't customize that.. or can I?

Owner

justinfrench commented Feb 22, 2012

actions is only available in Formtastic 2.1.x which is currently at 2.1.0.rc, so you'll need to bundle in that specific gem version.

https://rubygems.org/gems/formtastic/versions/2.1.0.rc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment