Created
November 11, 2008 04:45
-
-
Save nitsujw/23740 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Comment#create | |
def create(comment) | |
@comment = Comment.new(comment) | |
if @comment.save | |
eager_cache([Posts, :show], :store => :action_store) { build_request(build_url(:post, @comment.post.to_param)) } | |
partial 'comments/comment', :comment => @comment | |
else | |
return "Error saving comment" | |
end | |
end | |
merb : worker (port 4000) ~ Worker Thread Crashed with Exception: | |
undefined method `build_url' for #<Comments:0xb71e2f00> - (NoMethodError) | |
/home/justin/merb/blog/app/controllers/comments.rb:17:in `create' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment