# RESTful generated path names problem in 1.2.2?

**URL:** <https://discuss.rubyonrails.org/t/restful-generated-path-names-problem-in-1-2-2/8466>\
**Category:** rubyonrails-core\
**Created:** [February 9, 2007, 7:02am UTC](https://discuss.rubyonrails.org/t/restful-generated-path-names-problem-in-1-2-2/8466 "2007-02-09T07:02:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prog\_Frog](https://avatars.discourse-cdn.com/v4/letter/p/ec9cab/32.png) [@Prog\_Frog](https://discuss.rubyonrails.org/u/Prog_Frog)\
**Post date:** [February 9, 2007, 7:02am UTC](https://discuss.rubyonrails.org/t/restful-generated-path-names-problem-in-1-2-2/8466/1 "2007-02-09T07:02:57Z")

</div>

Hi Core

It's the first time I show my ugly face in this awe inspiring venue, so pardon me if it might not be the right place - in that case please just push me over to the right spot and I'll hop.

(A) WORKING CASE

With Rails 1.2.2, generate a new application and then do a ./script/generate scaffold\_resource, migrate, and browse You can test the generated views, and everything works.

(B) BREAKING CASE 1 - With Rails 1.2.2, generate a new application. 2 - In environment.rb set 2.1 - config.active\_record.pluralize\_table\_names = false 2.2 - &nbsp;&nbsp;Inflector.inflections do |inflect| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;inflect.uncountable %w( solo ) &nbsp;&nbsp;end 3 - ./script/generate scaffold\_resource solo title:string 4 - build the db with migrate 5 - Point browser to [http://localhost:3000/solo](http://localhost:3000/solo) 6 - Click on the 'New solo' link

you get this:

solo\_url failed to generate from {:controller=\>"solo", :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: ["solo", :id] - are they all satisifed?

Note that the breaking case did work in 1.2.1.

Is it a bug or am I the bug?

Croak!

--progfrog

---

<div class="post-metadata">

**Author:** ![Rick\_Olson](https://avatars.discourse-cdn.com/v4/letter/r/898d66/32.png) [@Rick\_Olson](https://discuss.rubyonrails.org/u/Rick_Olson)\
**Post date:** [February 9, 2007, 7:30am UTC](https://discuss.rubyonrails.org/t/restful-generated-path-names-problem-in-1-2-2/8466/2 "2007-02-09T07:30:17Z")

</div>

Resource routes don't work with uncountable names. You need to have foo\_path and foos\_path.

Also, this list isn't for bug reports. It's probably okay now with the current troubles on trac though 😕

---

<div class="post-metadata">

**Author:** ![Prog\_Frog](https://avatars.discourse-cdn.com/v4/letter/p/ec9cab/32.png) [@Prog\_Frog](https://discuss.rubyonrails.org/u/Prog_Frog)\
**Post date:** [February 9, 2007, 7:40am UTC](https://discuss.rubyonrails.org/t/restful-generated-path-names-problem-in-1-2-2/8466/3 "2007-02-09T07:40:36Z")

</div>

Thanks Rick,

Good to know that I am the bug, then! 😉

Croak!
