When I use a scaffold to generate a Foo model/controller, my controller has a default create action that will render :new if @foo.save returns false.
What happens to my @foo object when I render :new?
My stock new.html.erb view refers to @foo.errors, which makes me think that it reuses the @foo from my create action (rather than create a new object with @foo = Foo.new again in the new method). Is this not the case?
I'm worrying about this because I want to reuse this convention in a new namespaced controller (everything else appearing equal), but I get nil for @foo when render :new happens. It appears it's neither reusing the Foo object, nor creating a new one. So I'm trying to understand render better.