routes fails??? hmm

I'm getting:

rate_vendor_hardware_url failed to generate from {:vendor_id=>#<Hardware id: 6, name: "this is the hardware name", version: "this is the version", ETC ETC

What is usually wrong when i recieve "_url failed to generate"?

David Zhu wrote:

I'm getting:

rate_vendor_hardware_url failed to generate from {:vendor_id=>#<Hardware id: 6, name: "this is the hardware name", version: "this is the version", ETC ETC

What is usually wrong when i recieve "_url failed to generate"?

You're not providing the right parameters to generate the URL. To determine what the right parameters are, check routes.rb .

Best,

Without seeing the route definition or the rest of the 'ETC ETC' it's impossible to say.

Typically that error will tell you waht it received, what it expected, and the difference.

Provide more details and how you're calling it perhaps we can help.