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

New Draft - Delete #107

Closed
dbc60 opened this issue Jan 2, 2013 · 1 comment
Closed

New Draft - Delete #107

dbc60 opened this issue Jan 2, 2013 · 1 comment

Comments

@dbc60
Copy link

dbc60 commented Jan 2, 2013

I was playing around with a fresh build of obtvse and found that clicking on the "NEW DRAFT" button, optionally starting to type a title, and then clicking Delete -> OK caused the error "undefined method `destroy' for nil:NilClass". I got around the issue editing app/controllers/posts_controller.rb so@post.destroy is wrapped in an if-end block:

if @post.present?
@post.destroy
end

I hope that helps.

@natew
Copy link
Owner

natew commented Jan 9, 2013

Not actively maintaining the master branch, feel free to submit a pull request.

@natew natew closed this as completed Jan 9, 2013
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