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

Mass Assignment Error #18

Closed
bertomartin opened this issue Feb 11, 2013 · 2 comments
Closed

Mass Assignment Error #18

bertomartin opened this issue Feb 11, 2013 · 2 comments

Comments

@bertomartin
Copy link

When updating a post with active admin, I get this error:

Can't mass-assign protected attributes: blogger_type

@Bodacious
Copy link
Owner

@bertomartin - I've updated this on the master branch but it hasn't been released yet.

Until the next release, you could do either:

# create the post as a child of your blogger class:
@user.blog_posts.new(params[:post])

or ...

# Tell Bundler to use the current master branch (edge) version of blogit:
gem 'blogit', git: 'git@github.com:KatanaCode/blogit.git'

@bertomartin
Copy link
Author

Thanks for the quick response.

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