When using formtastic in development, commit button text is being created ok, ie 'Create Product' or 'Save Product'... however, while testing it in production mode, I'm having an weird issue: commit labels are updating the translation, resulting in 'Save Product Product Product'... as many times I open the form for editing.
As translations aren't reloaded in production, changing the following code:
I18n.t(prefix.downcase, :default => prefix, :scope => [:formtastic]) << ' ' << object_name
button_text = I18n.t(prefix.downcase, :default => prefix, :scope => [:formtastic]).dup
button_text << ' ' << object_name
worked nicely here.
Fixed! I will ask Justin to release a new gem!
Done! 0.2.4 just got pushed to github, should be available soon!