RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: coredevs
Yep, it was due to calling the create_activity method after the object had been destroyed.
According to the gem maintainers, you simply have to assume the record will be destroyed, and call create_activity before the destroy
Did you manage to implement this?
Calling @comment.create_activity :destroy, owner: current_user after if @comment.destroy gives the following error: You cannot call create unless the parent is saved.
@comment.create_activity :destroy, owner: current_user
You cannot call create unless the parent is saved
I'm still getting problems with rbenv just hanging on "Installing ruby-1.9.3-p429...", I've never had any problems before, or had to alter any SSH timeouts. Any ideas?
Thanks, this solved all issues I was having with bootstrap plugins :)
Still getting issues with this, dropdown's aren't triggered after page change