[Rails] Renaming controllers/views/models

Jon Gretar Borgthorsson
2006-05-17T19:12:54Z

No real tool for it no.
Guess it would be nice to create a rake task or a generator for it.
Mabey also to check the right pluralization.
It''s only renaming one file, one directory and changing the first line
in one file.

On 5/17/06, Mickael Faivre-Macon <faivrem@gmail.com>
wrote:
> Hi,
>
> What would be the best way to rename a controller and associated
models/views ?
> Do we have to do it by hand ?
> Is there a tool that could help us renaming pluralized words too ?
>
> Mickael.
>
>
> On 5/11/06, Ryan Prins <rprins@gmail.com> wrote:
> > Following up on this, does this delete the associated tests as well
and
> > other items that are created when you do script/generate controller
> > myController?
> >
> > Also, it would be nice to have a script/rename controller OrigName
NewName
> >
> > I know I''ve screwed up more than once naming my stuff the
Rails way ;)
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>


--
--------------
Jon Gretar Borgthorsson