RESTful generated path names problem in 1.2.2?

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 -   Inflector.inflections do |inflect|      inflect.uncountable %w( solo )   end 3 - ./script/generate scaffold_resource solo title:string 4 - build the db with migrate 5 - Point browser to 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

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 :confused:

Thanks Rick,

Good to know that I am the bug, then! :wink:

Croak!