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

Blog settings error #133

Closed
dvanderbeek opened this issue Apr 15, 2015 · 4 comments
Closed

Blog settings error #133

dvanderbeek opened this issue Apr 15, 2015 · 4 comments
Labels

Comments

@dvanderbeek
Copy link
Contributor

When I run the dummy server and attempt to change the title of a blog from the blog settings menu, the response is a 422 error.

@dvanderbeek
Copy link
Contributor Author

Looks like the error on the @blog record is that draft_content can't be blank. It looks like we have Blog inheriting from Page, which inherits from Post, which includes the has_versions concern. We probably need to switch up the way our models are set up to fix this.

@dvanderbeek
Copy link
Contributor Author

Also, it appears this only happens for the default blog that gets created when you create a site. In the dashboard/blogs_controller there's a pretty dirty hack that just sets :draft_content to "test" on any other Blogs that get created, along with a few other attributes that really don't belong on a Blog record. I guess the easiest fix for now would be to do something similar for the default Blog.

@eanlain
Copy link
Contributor

eanlain commented May 19, 2015

@dvanderbeek is this still an issue? I can't seem to reproduce...

@dvanderbeek
Copy link
Contributor Author

Hmm, looks like it's working on the dummy app now. I'll close the issue and we can re-open it if we run into it again.

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

No branches or pull requests

2 participants