Skip to content

Instantly share code, notes, and snippets.

@colmtuite
Created May 2, 2015 18:32
Show Gist options
  • Save colmtuite/46e53e8d92104fef9ea2 to your computer and use it in GitHub Desktop.
Save colmtuite/46e53e8d92104fef9ea2 to your computer and use it in GitHub Desktop.
Started DELETE "/comments/4" for 127.0.0.1 at 2015-05-02 19:30:44 +0100
Processing by CommentsController#destroy as JS
Parameters: {"id"=>"4"}
Comment Load (0.2ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" = ? LIMIT 1 [["id", "4"]]
Rendered comments/destroy.js.erb (1.0ms)
Completed 500 Internal Server Error in 6ms
ActionView::Template::Error (undefined method `gsub' for 4:Fixnum):
1: var element = document.getElementById("<%=j @comment.id %>");
2: element.parentNode.remove();
app/views/comments/destroy.js.erb:1:in `_app_views_comments_destroy_js_erb___1716140605530958460_2161756880'
app/controllers/comments_controller.rb:19:in `destroy'
Rendered /Users/colmtuite/.rvm/gems/ruby-2.1.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.7ms)
Rendered /Users/colmtuite/.rvm/gems/ruby-2.1.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.3ms)
Rendered /Users/colmtuite/.rvm/gems/ruby-2.1.0/gems/actionpack-4.0.1/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (14.0ms)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment