Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `attr_accessible' #29

Open
Ruff9 opened this issue Jun 28, 2016 · 1 comment
Open

undefined method `attr_accessible' #29

Ruff9 opened this issue Jun 28, 2016 · 1 comment

Comments

@Ruff9
Copy link

Ruff9 commented Jun 28, 2016

Hi, Ijust followed your readme, and after adding the line

just_define_datetime_picker :date, :add_to_attr_accessible => true

in my model, I get

undefined method 'attr_accessible' for #<Class:0x007fc574bfa838> Did you mean? attr_accessor

I'm using Rails 4.2.6 and ruby 2.3.1

@Durddill
Copy link

Durddill commented Sep 2, 2016

Hi, late answer but it may still help, if I am correct, there is no mass assignment as from Rails 4.1.

Your attribute :date should just be listed in your strong parameters, you can delete , :add_to_attr_accessible => true.

works fine this way for my project ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants