Mongoid 4 multiparameter attributes with Rails 4

693 Views Asked by At

I am using a date helper in a rails 4 form.

= date_select :press_article, :date

My model:

class PressArticle
  include Mongoid::Document
  include Mongoid::MultiParameterAttributes
  field :title, type: String
  field :excerpt, type: String
  field :body, type: String
  field :date, type: Date
  field :press_name, type: String
  field :press_logo, type: String
  field :article_image, type: String
  field :article_url, type: String
end

However, when I try to save a new press_article I get the following error:

uninitialized constant Mongoid::MultiParameterAttributes

Help anyone?

1

There are 1 best solutions below

0
On

Mongoid::MultiParameterAttributes was removed from Mongoid and the entire thing is up in the air at the moment with Rails 4.

https://github.com/rails/rails/pull/8189