title: respond_with and namespaced controller
body: <p>I'm trying to make use of rails 3's respond_to/respond_with mechanism for restful controllers. I'm finding that when I try and use those features within a namespaced controller the redirects fail and i have to specify the optional location: parameter on the respond_with.</p>
  
  <p>So right now I have:</p>
  
  <pre><code>def Admin::FooController
    respond_to :html, :xml
    def create
      @foo = Foo.new(params[:foo])
      @foo.save
      respond_with(@foo, location: admin_foo_path(@foo))
    end
  end
  </code></pre>
  
  <p>If I don't provide the location parameter it attempts to redirect to just foo_path(@foo)</p>
  
  <p>Any ideas as to why this would be / if I'm doing something wrong or does rails 3's default responder just not handle namespaced URL routes?</p>