Thank you for the reply Marnen.
Yes, the rdoc for routes 2.3.5 would be very helpful. I am trying to make my
Routes allow multiple doctors to have accounts. Since I won't know what
Doctor is logging in, I am not sure what to give as the id. This is the
relevant piece of my routes.

map.resources :doctors

that is all I have for the relevant part of my code.
The routes.rb not being given the id is the cause for the error.

On Fri, Oct 8, 2010 at 8:08 AM, Marnen Laibow-Koser <[email protected]>wrote:

> The_programmer wrote:
> > Hi,
> > Routes.rb wants the id for doctors. I would love to give routes the
> > answer it is looking for, but I am not sure how to define an id in
> > rails.
>
> Your question appears to make little sense as stated.  Try again with
> more information:
>
> * What are you trying to achieve?
> * What does the relevant part of routes.rb look like?
>
> [...]
> > Tutorial links on routes in 2.3.5
> > would also be helpful.
>
> You mean like the rdoc for the Routing class?
>
> > I don't want to upgrade to 3.0, because I've
> > already written a lot of it in rails 2.3.5.
>
> Not a great reason.  You may not want to upgrade right away, but you
> should give some serious thought to doing so eventually.  Since you've
> been developing test-first (you have, right?), this should be relatively
> easy.
>
> > Here is the error I am getting.
> > doctor_url failed to generate from
> > {:controller=>"doctors", :action=>"show"} - you may have ambiguous
> > routes, or you may need to supply additional parameters for  this
> > route.  content_url has the following required parameters:
> > ["doctors", :id] - are they all satisfied?
>
> And what code is giving you that error?
>
> Best,
> --
> Marnen Laibow-Koser
> http://www.marnen.org
> [email protected]
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> 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]<rubyonrails-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
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 this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to