We just migrated from rails ActiveRecord to mongoid. In our view we could use the helper
<%= f.date_select :date, :use_two_digit_numbers => true, :order => [:day, :month, :year], class: "form-control" %>
However it's not working with mongoid as it is sending the parameters
date(3i)"=>"21", "date(2i)"=>"9", "date(1i)"=>"2014"
And rails throw a
Mongoid::Errors::UnknownAttribute
Problem: Attempted to set a value for 'date(3i)' which is not allowed on the model
This question mentions that mongoid cannot do that without including a module. But apparently my rails app doesn't recognise the module ?
uninitialized constant Mongoid::MultiParameterAttributes