elliotcm / generic_form_builder

A generic Rails 3/4/5? form builder
5 stars 11 forks source link

Allow rails check_box to be called #16

Closed Davidslv closed 6 years ago

Davidslv commented 6 years ago

When default_builder is true it should have more options to be compatible with the default rails method as seen here:

https://github.com/rails/rails/blob/44a9aedd7b8d65517b15bbbb7729f3f16991e23f/actionpack/lib/action_view/helpers/form_helper.rb#L840

Fixes #15

Davidslv commented 6 years ago

Btw: This was not tested

Davidslv commented 6 years ago

I just had a better look into the Rails check_box and I think I'm going to close this for now as this commit will not fix the issue, specially because it's not taking in consideration the necessary hidden field