Ruby on Rails Saturday, July 3, 2010

Ok, found the issue. equipment is not pluralized anywhere and the
routes were having issues. Had to do this:

map.resources :equipment, :singular => :equipment

On Jul 2, 6:54 pm, Me <chabg...@gmail.com> wrote:
> 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.

No comments:

Post a Comment