I accidentally created a controller with the wrong name. Obviously I don''t want to have this useless controller hanging around - is there a prescribed way to delete the controller or can I just delete the controller file? -- Posted via ruby-forum.com.
from yesterday not sure what you''ve done to get what you''ve got, but the destroy script will certainly help you clean up properly (i.e: it removes the tests and helpers and stuff) e.g: ruby script/destroy controller article On 1/20/06, Mark Daoust <mark@site-reference.com> wrote:> > I accidentally created a controller with the wrong name. Obviously I > don''t want to have this useless controller hanging around - is there a > prescribed way to delete the controller or can I just delete the > controller file? > > -- > Posted via ruby-forum.com. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: wrath.rubyonrails.org/pipermail/rails/attachments/20060120/3d8063a0/attachment.html
Just delete the file. If you use the ruby script/destroy controller MyController command though, it will also get rid of your functional tests. And maybe a helper too and stuff. Mark Daoust wrote:> I accidentally created a controller with the wrong name. Obviously I > don''t want to have this useless controller hanging around - is there a > prescribed way to delete the controller or can I just delete the > controller file?-- Posted via ruby-forum.com.
Thank you. -- Posted via ruby-forum.com.