Can't force scaffold to overwrite files?

I can’t seem to overwrite scaffold files for some reason. Using script/
generate scaffold client admin with -f anywhere in the line at all
(trust me, I’ve tried every single combination) doesn’t overwrite the
old scaffold files! What am I doing wrong here?

Gary King wrote:

I can’t seem to overwrite scaffold files for some reason. Using script/
generate scaffold client admin with -f anywhere in the line at all
(trust me, I’ve tried every single combination) doesn’t overwrite the
old scaffold files! What am I doing wrong here?

Someone needs to add to the FAQ: Scaffolds are prototypes, and should
almost
never get regenerated. Generate at most one scaffold per project, then
manually upgrading it and add features. That is the way of things.


Phlip
Redirecting... ← NOT a blog!!!

Use “script/destroy scaffold client admin”

If you can create it with ‘script/generate’, you should be able to
destroy it with ‘script/destroy’. However, there’s an inherent
inconvenience if you use this with an entity that creates a migration
(e.g. model, scaffold).

Once you rake the migration, it should be in your schema, so if you
destroy that migration and put another one with the same name (but
different timestamp) in its place, I’m not sure whether raking will work
properly. You might have to change your schema or database manually
before raking will work.

Hi sir ,

I am using scaffold method how to use the image save and image retrive
from
database how to use the scaffold for the process