Currently, when I get an error on an erb template (for use with HTTPServer/cgi) I do the following:
The call stack doesn't seem to correspond to anything in my .rhtml file.
(erb):6:in `block in <main>'
/opt/local/lib/ruby/1.9.1/erb.rb:753:in `eval'
/opt/local/lib/ruby/1.9.1/erb.rb:753:in `result'
bin/correct.rb:45:in `block in <main>'
/opt/local/lib/ruby/1.9.1/webrick/httpservlet/prochandler.rb:26:in `call'
Not sure if this is applicable to this problem but maybe it will help someone. I'm using rails 5 and if you put
<% debugger %>
in your html.erb file it will pause the terminal window that your rails server is running in. From there you can debug whatever params or variables your html.erb file has.