This project is archived and is in readonly mode.

#5461 ✓resolved
Christian Johansen

Generators spew stack traces when no type is provided for attributes

Reported by Christian Johansen | August 25th, 2010 @ 08:44 PM

script/rails generate MyModel name

If you leave out the type of the attribute (i.e. should be name:string or similar in the above example), Rails spews a stack trace and exits. Would be helpful with a descriptive error message.

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