Issue #126 resolved

Exception exporting to both plain text and RTF

Marisa Strong avatarMarisa Strong created an issue

Error when user tries to export in both plain text and RTF formats.

Processing by PlansController#show as TEXT Parameters: {"utf8"=>"✓", "commit"=>"Export", "id"=>"5101"} Rendered plans/show.txt.erb (79.8ms) Completed 500 Internal Server Error in 89ms

ActionView::Template::Error (can't dup NilClass): 5: 6: <%plainText=strip_tags(qa.answer)%> 7: <% require 'cgi'%> 8: <%= CGI.unescapeHTML(plainText)%> 9: 10: <% end %> 11: app/views/plans/show.txt.erb:8:in block in _app_views_plans_show_txt_erb___1489670877006612230_40375500__1230083895542910738' app/views/plans/show.txt.erb:3:ineach' app/views/plans/show.txt.erb:3:in _app_views_plans_show_txt_erb___1489670877006612230_40375500__1230083895542910738' app/controllers/plans_controller.rb:61:inblock (2 levels) in show' app/controllers/plans_controller.rb:56:in show' lib/rack/munge_headers.rb:8:incall'

Comments (4)

  1. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.