Skip to content

Instantly share code, notes, and snippets.

@nitsujw
Created November 12, 2008 23:12
Show Gist options
  • Save nitsujw/24305 to your computer and use it in GitHub Desktop.
Save nitsujw/24305 to your computer and use it in GitHub Desktop.
def create
...
## Using @comment.post and @comment.post.id both error out
eager_cache([Posts, :show], :store => :action_store) { self.class.build_request(url(:post, @comment.post)) }
eager_cache([Posts, :show], :store => :action_store) { self.class.build_request(url(:post, @comment.post.id)) }
...
end
.... Enter comment into SQL ....
merb : worker (port 4000) ~ Params: {}
merb : worker (port 4000) ~
merb : worker (port 4000) ~ Worker Thread Crashed with Exception:
Merb::ControllerExceptions::BadRequest - (Merb::ControllerExceptions::BadRequest)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment