paulkamara-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Jan-30 14:47 UTC
How to delete a controller in instant rails
hi folk i''ve just mistakingly created a crontoller in instant rails does anyone know how the delete commands/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
If you created a controller using the generator like this: ruby script/generate controller some_name You can undo it like this: ruby script/destroy controller some_name On Jan 30, 9:47 am, "paulkam...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <paulkam...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> hi folk i''ve just mistakingly created a crontoller in instant rails > does anyone know how the delete commands/--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
paulkamara-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:> hi folk i''ve just mistakingly created a crontoller in instant rails > does anyone know how the delete commands/The first thing you should do is look at the entire directory structure that was created for you. If you intend to work seriously with rails, you will have to know where everything is anyways and it''s good to start right now.. Actually. most newbie rails books urge you to do this towards the beginning of the book After some research you will find that to delete a controller, you just need to remove /app/controllers/<controller_name> /app/views/<controller_name> /app/views/layouts/<controller_name> /test/functional/<controller_name> /test/fixtures/<controller_name> Having an extra controller around will not hurt anything anyways.. hth ilan -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---