Can someone explain to me why I'm getting undefined method when I add day[] (an array) to my select tag
<%= form_for [@hourable, @hour] do |f| %>
<%= f.select 'day[]', options_for_select(days_hours) %>
<% end %>
But when I have it like this :day:
<%= form_for [@hourable, @hour] do |f| %>
<%= f.select :day, options_for_select(days_hours) %>
<% end %>
It works fine?
Thanks