bootstrap-ruby / bootstrap_form

Official repository of the bootstrap_form gem, a Rails form builder that makes it super easy to create beautiful-looking forms using Bootstrap 5.
MIT License
1.64k stars 352 forks source link

`collection_check_boxes` does not work with Rails 6.1 #717

Closed av-martin closed 4 months ago

av-martin commented 8 months ago

It appears to be missing a method called field_name somewhere:

image

I can provide a sample project, if that would be helpful :)

lcreid commented 7 months ago

Thanks for bringing this to our attention. It would be very helpful is you can show us a bit of the code that's causing the issue. If there's a publicly available project that reproduces the problem, that's even better. Thanks again for taking the time to report this!

av-martin commented 7 months ago

Sure thing, i've made a sample project that triggers the bug here: https://github.com/av-martin/bootstrap_form_gem_sample

The line that triggers the bug is here: https://github.com/av-martin/bootstrap_form_gem_sample/blob/4a58634f189143a147abd2949bf2b85d80b01b6f/app/views/members/_form.html.erb#L15

Thanks for taking a look :)

lcreid commented 7 months ago

@donv It looks like you meant to address this in https://github.com/bootstrap-ruby/bootstrap_form/pull/698. If you get a chance, can you take a look at this issue? Thanks in advance.