thetron / css3buttons_rails_helpers

Rails helpers to generate beautiful css3 buttons, based on the 'css3-github-buttons'
http://nicolasgallagher.com/lab/css3-github-buttons/
MIT License
315 stars 29 forks source link

button_submit to form builder #5

Open austvik opened 13 years ago

austvik commented 13 years ago

Hi.

A small feature request:

Please add something like button_submit, which looks like "submit (ActionView::Helpers::FormBuilder)". The nice thing with it is that it sets the caption (update/create) depending on whether or not the form updates or creates a new model object.

thetron commented 13 years ago

This is definitely something I had wanted to add from the start, however the problem is that it is not easy to implement support for custom form builders like simple_form and formtastic.

I noticed over on the nested_form issue tracker they're discussing the same/similar problem, I'll keep an eye on that thread too, in case they come up with a good solution.

I'll have a bit of a think about possible solutions though, but definitely open to any ideas that might help tackle this.