rspec_scaffold URL generation errors

Steve Scruggs
Tue, 22 Sep 2009 13:02:03 -0000

I am using Rails 2.3.4 and when I use rspec_scaffold the code that is
generated does not work without modification.  For example, the link_to
that is generated for a show
<%= link_to ''Show'', invoice_payment
%>

fails with "invoice_payment_url failed to generate from
{:format=>#<InvoicePayment id: 1, ...."

but if I change the code to
<%= link_to ''Show'', :id => invoice_payment
%>
it works fine.  This seems inconsistent with the documentation.

What am I doing wrong here?