1. dmptool
  2. main
  3. Issues
Issue #126 resolved

Exception exporting to both plain text and RTF

Marisa 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