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
--
http://railfrog.com/
Railfrog, the user-friendly, open-source web site deployment and
content management system built with Rails; producing well structured
and standards-compliant pages with Web 2.0 goodness.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com
To unsubscribe from this group, send email to
rubyonrails-core-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---
On 2/9/07, Prog Frog <progfrog.railfrog@gmail.com> wrote:> > 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 > > -- > http://railfrog.com/ > Railfrog, the user-friendly, open-source web site deployment and > content management system built with Rails; producing well structured > and standards-compliant pages with Web 2.0 goodness.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 :/ -- Rick Olson http://weblog.techno-weenie.net http://mephistoblog.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks Rick, Good to know that I am the bug, then! ;-) Croak! On 2/9/07, Rick Olson <technoweenie@gmail.com> wrote:> > On 2/9/07, Prog Frog <progfrog.railfrog@gmail.com> wrote: > > > > 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 > > > > -- > > http://railfrog.com/ > > Railfrog, the user-friendly, open-source web site deployment and > > content management system built with Rails; producing well structured > > and standards-compliant pages with Web 2.0 goodness. > > 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 :/ > > -- > Rick Olson > http://weblog.techno-weenie.net > http://mephistoblog.com > > > >-- http://railfrog.com/ Railfrog, the user-friendly, open-source web site deployment and content management system built with Rails; producing well structured and standards-compliant pages with Web 2.0 goodness. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---