运行“rails generate scaffold pins description:string”时出错

时间:2014-01-07 04:44:10

标签: ruby-on-rails terminal scaffold

我在终端中输入以下代码:

rails generate scaffold pins description:string

我收到以下错误:

Plural version of the model detected, using singularized version. Override with --force-plural.
      invoke  active_record
The name 'Pin' is either already used in your application or reserved by Ruby on Rails.
Please choose an alternative and run this generator again.

为什么我收到此错误,我该怎么做才能修复它?

我一直在寻找解决方案,但我找不到任何解决方案。

1 个答案:

答案 0 :(得分:1)

在控制台中,运行“rails destroy scaffold pins description:string”