Rename a controller

Boop Boop wrote:

Is there a generator that can rename a controller? I don't want to have
to manually change all of the files that are associated with the
controller.

No. Search and replace the name, then run all your unit tests. Don't integrate (commit to Subversion) until they all pass.

Such a generator would be impossible, because it would have to parse Ruby on the fly, and _then_ do everything your unit tests do.

Boop Boop wrote:

Is there a generator that can rename a controller? I don't want to
have
to manually change all of the files that are associated with the
controller.

No. Search and replace the name, then run all your unit tests. Don't
integrate (commit to Subversion) until they all pass.

Such a generator would be impossible, because it would have to
parse Ruby on
the fly, and _then_ do everything your unit tests do.

My understanding is that such a feature is making it's way into Code
Gears re-factoring capabilities.

I haven't seen it myself, but David "I" mentioned it at railsconf.