Frederick Cheung wrote in post #988214: > On Mar 18, 7:06pm, John Merlino <li...@ruby-forum.com> wrote: >> table_str += "\t\t<tr>\n" >> fields.each do |name| >> >> >> What the above does is render a big string of what I am wanting to >> display as html markup. If I add puts(table_str) to the helper method, >> then nothing gets rendered on the page. >> >> Any idea what I am doing wrong? > > Have you checked that your table method is actually being called (eg > by sticking a breakpoint in it or some calls to Rails.logger.info) ? > > Fred
Im pretty sure it gets called because it outputs html as one huge string e.g. '<table><th>Item</th>' and one long string displays in the browser. That's when I don't add puts at the end of the helper method. When I add puts and pass in the concatenated string, nothing gets displayed at all. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.