[Rails] Re: routes for new resources

2012-08-18 Thread bertly_the_coder
Hey John, Haven't you defined it as a POST in this line? post :preview On Friday, August 17, 2012 6:38:38 PM UTC+3, John Merlino wrote: > > actually, let me rephrase this. That route points to the preview > action of a reports controller, but why is it a POST for a new > resource? > > On Aug

[Rails] Re: routes for new resources

2012-08-17 Thread John Merlino
actually, let me rephrase this. That route points to the preview action of a reports controller, but why is it a POST for a new resource? On Aug 17, 11:32 am, John Merlino wrote: > Does anyone know what the controller code would look like for a route > like this: > > resources :reports do >   new