[Nitro] Infinite loop rendering template

James Britt james_b at neurogami.com
Sat Apr 9 01:36:57 EDT 2005


I have a form page, generated straight from a template, that has the 
action set to action='/post_entry'

When i submit the form, it hits the post_entry method on the default 
controller class (Blog), and then tries to render the matching template 
file, post_entry.xhtml.  So far so goo, no?

But it goes into an infinite loop:


DEBUG: Transforming 'public/index.xhtml'
DEBUG: Compiling action 'public/'
DEBUG: Transforming 'public/index.xhtml'
DEBUG: Compiling action 'public/'
DEBUG: Transforming 'public/index.xhtml'
DEBUG: Compiling action 'public/'
DEBUG: Transforming 'public/index.xhtml'
DEBUG: Compiling action 'public/'


Any ideas on what causes this?

The method is this

   def post_entry
     STDERR.puts( "-- post_entry ")
     entry = Entry.new( Time.now, request['content'] )
   end

And the template does little more than include another template for a 
header, and render properties of the entry variable.

I'm puzzled.

James



More information about the Nitro-general mailing list