Friday, July 2, 2010

[Rails] url error rails 2.3.5

I have the routes set up for 'equipment', standard scaffold. When I
try to go to equipment/new this error pops up:

Showing app/views/equipment/new.html.erb where line #3 raised:

equipment_url failed to generate from
{:action=>"show", :controller=>"equipment"} - you may have ambiguous
routes, or you may need to supply additional parameters for this
route. content_url has the following required parameters:
["equipment", :id] - are they all satisfied?

Not sure why it is trying to go to the show action......

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate