79575711

Date: 2025-04-15 17:20:42
Score: 0.5
Natty:
Report link

This way is working perfectly fine for me:

<%= f.input :unit_name, 
   collection: @units.map { |u| [u, u] },
   as: :select,
   input_html: { class: 'select2' },
   prompt: 'prompt'
%>

'input_html: { class: 'select2' }' Line is making the select2 work

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Brian Santanaa