Forum: Ruby on Rails combining "stdout" with error

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
923272b208fa790e1ae99e79605b6512?d=identicon&s=25 hperess (Guest)
on 2005-12-06 03:04
(Received via mailing list)
im getting this error page with fastcgi (not sure if that matters)

  Showing /tests/_taxfielddisp.rhtml where line #8 raised:

undefined method `each' for #<Taxfield:0x40c024c4>

Extracted source (around line #8):

      1  TEST
      2  <%
      3      @taxfields = Taxfield.find_by_displaygroup('taxes')
      4  %>
      5  <%=@taxfields.inspect %>
      6  UMM
      7  <%
      8      for column in @taxfields
      9          puts column.inspect
     10      end
     11  %>

the error seems to be on line 8, as it says. but the <%
=@taxfields.inspect %> seems to be going to /dev/null
so how can i simply get all output before the error to display for me
on this page.

------------------------------------------------------------------------

Hunter Peress
hperess@sfnewmexican.com
Web Programmer
The Santa Fe New Mexican, Inc.
This topic is locked and can not be replied to.