This project is archived and is in readonly mode.

#3062 ✓committed
Daniel

[PATCH] plural names generate a constant error

Reported by Daniel | August 16th, 2009 @ 11:50 PM

Greetings,

When I create a pre-plural-ized name with the scaffolding, I get an error like this:

-- start

NameError in PicturesController#index

uninitialized constant PicturesController::Pictures

-- end

Here are the steps to reproduce this problem:

-- START

rails test --database=mysql

cd test

rake db:create RAILS_ENV='development'

rake db:migrate

ruby script/generate scaffold user username:string

ruby script/generate scaffold pictures title:string

rake db:migrate

ruby script/server

-- END

http://localhost:3000/users -> this works.
http://localhost:3000/pictures -> this generates an const error.

OS: Ubuntu 9.04 "jaunty"
Ruby: 1.8.7 patchelevel 72
Rails: 2.3.3

--

If you need any more information, let me know.

-daniel

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Referenced by

Pages