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 <[email protected]> wrote:
> Does anyone know what the controller code would look like for a route
> like this:
>
> resources :reports do
>   new do
>     post :preview
>   end
> end
>
> and a helper that looks like this:
>
> preview_new_report_path
>
> thanks for response

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to