Commenting an Issue will result in HTTP Error 500 in production.log
Created by: jaypikay
I am using version 2.4 (stable) When I try to leave a comment on an issue nothing happens. Looking at the production.log shows simething like this
Started POST "/wbgrab/notes" for 127.0.0.0.1 at 2012-04-23 21:55:57 +0200
Processing by NotesController#create as JS
Parameters: {"utf8"=>"✓", "authenticity_token"=>"gA/AOZqYfJbzW2FtyuFzZ8E/pmuprOk5U+q7p0VXKCk=", "note"=>{"noteable_id"=>"27", "noteable_type"=>"Issue", "note"=>"While parsing page content a tag shelve is created:\r\n tagid: tagname, filtered"}, "notify"=>"1", "commit"=>"Add Comment", "project_id"=>"wbgrab"}
Rendered notify/note_issue_email.html.haml within layouts/notify (3.4ms)
Completed 500 Internal Server Error in 21ms
ActionView::Template::Error (uninitialized constant ActionView::CompiledTemplates::RDiscount):
20: %tr
21: %td{:valign => "top"}
22: %div{ :style => "background:#f5f5f5; padding:20px;border:1px solid #ddd" }
23: = RDiscount.new(@note.note, :autolink, :no_pseudo_protocols, :safelink, :smart, :filter_html).to_html.html_safe
24: %td{:style => "font-size: 1px; line-height: 1px;", :width => "21"}
app/views/notify/note_issue_email.html.haml:23:in `_app_views_notify_note_issue_email_html_haml___615007209042352230_158111120'
app/mailers/notify.rb:49:in `note_issue_email'
app/models/mailer_observer.rb:37:in `block in new_note'
app/models/mailer_observer.rb:32:in `each'
app/models/mailer_observer.rb:32:in `new_note'
app/models/mailer_observer.rb:8:in `after_create'
app/controllers/notes_controller.rb:22:in `create'