Removing scaffold?

Hi,
I just created a new scaffold in my app using the nifty-scaffold plugin.
However, I messed up the syntax and forgot the model name, so it ended
up being called “Title:string”.

I now can’t run any tasks from the terminal as I get the following
error:

vendor/rails/activesupport/lib/active_support/inflector.rb:352:in
`const_defined?’: wrong constant name Title:stringsHelper

Followed by lines of other complaints.

I’ve deleted the migration, controller, model and view files, but the
error continues to occur. What else do I need to get rid of?

Any advice appreciated.

Thanks

Try running ‘script/destroy scaffold Title:string’ and seeing if that
takes
care of it for you.

Steve K. wrote:

Try running ‘script/destroy scaffold Title:string’ and seeing if that
takes
care of it for you.

Or use your version control system to roll back the changes.

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

Check your routes file too (if you can’t roll back from your version
control system).

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs