This project is archived and is in readonly mode.

#5363 ✓resolved
cuthbert

Incorrect display of warning when invoking scaffold generator equal singular/plural noun

Reported by cuthbert | August 12th, 2010 @ 10:28 AM | in 3.x

Tested with Rails 3.0.0.rc:

rails new testapp

cd testapp

rails generate scaffold Series name:string

This incorrectly gives the following warning:
"Plural version of the model detected, using singularized version. Override with --force-plural."

Since the noun series is identical in both singular and plural mode, the above scaffold generation is typed correctly, and should not give a warning. Such a warning should only be given when the noun's singular and plural spelling is different.

Note that the code generated (and names used in the code) seems to be perfectly correct for this case. The issue is only with an unwarranted display of the warning.

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>

Attachments

Referenced by

Pages