Hi All,

I've searched on this topic and can't seem to find anyone results saying
others have had the same problem, so hope someone here can help.

if in routes, I map addresses:
map.resources :addresses

If get the following routes:
addresses
new_Address
edit_Address

Note that the singular routes (new, edit) are capitalized.

to prove the issue, in console, I can type:
>> "addresses".singularize
=> "Address"

and you see it doesn't happen with a word that doesn't require more than
stripping the 's':
>> "routes".singularize
=> "route"

this makes it impossible to use 'form_for @address', etc because it
produces lowercase route call that don't match.

Thanks for any help!

-Ben
-- 
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]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to