Rails : simple_form : Getting an empty string from checkbox collection

前端 未结 1 1789
挽巷
挽巷 2021-02-18 19:08

I have the following code in my views

<%= f.input :role_names, as: :check_boxes, collection: @program.role_names %>

And whenever I submit the

相关标签:
1条回答
  • 2021-02-18 20:03

    It's a Rails' feature. You'll be able disable it in Rails 4. You can read more about this on simple form issue #603 and Rails issue #5402

    0 讨论(0)
提交回复
热议问题