Fahim Patel
2012-Aug-16 05:03 UTC
hii friends,,,,,i m new to rails......i think there is a problem in destroy command .
let me explain this problem ........ -------------------rails destroy----------------------------this command destroy model,scaffold etc ..... problem is that if a model or other structure is exist than ,this command will destroy all the related file to it.......good ..till now no problem........... but problem is that if a model etc is not exist than till this command remove the file ...it should not be done.....there is no such a file name exist.......... some error or exception should be execute at this time .... i think this a problem??? if not than expalin me.......... Regards Fahim Babar Patel -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/h3LakU2NoEgJ. For more options, visit https://groups.google.com/groups/opt_out.
Colin Law
2012-Aug-16 19:42 UTC
Re: hii friends,,,,,i m new to rails......i think there is a problem in destroy command .
On 16 August 2012 06:03, Fahim Patel <pafahim-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> let me explain this problem ........ > -------------------rails destroy----------------------------this command > destroy model,scaffold etc ..... > problem is that if a model or other structure is exist than ,this command > will destroy all the related file to it.......good ..till now no > problem........... > but problem is that if a model etc is not exist than till this command > remove the file ...it should not be done.....there is no such a file name > exist.......... > some error or exception should be execute at this time .... > > i think this a problem??? > if not than expalin me..........I am not sure what you are saying. Can you post an example and the result and explain what you think should happen. Run the command and copy and paste the result here. Showing an example is always better than trying to explain it in words in a languaget that is not your first language. Colin -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
AmateurCoder
2012-Aug-16 20:09 UTC
Re: hii friends,,,,,i m new to rails......i think there is a problem in destroy command .
Are you saying to run rails destroy model foo and foo doesn''t exist then you should get an error or exception message? If you try this on the command line rails destroy model foo, it will run the opposite of the generate command; however, nothing ever existed, so can''t see the harm. On Thursday, August 16, 2012 12:03:47 AM UTC-5, Fahim Patel wrote:> > let me explain this problem ........ > -------------------rails destroy----------------------------this command > destroy model,scaffold etc ..... > problem is that if a model or other structure is exist than ,this command > will destroy all the related file to it.......good ..till now no > problem........... > but problem is that if a model etc is not exist than till this command > remove the file ...it should not be done.....there is no such a file name > exist.......... > some error or exception should be execute at this time .... > > i think this a problem??? > if not than expalin me.......... > > Regards > Fahim Babar Patel >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/uAJe7mwsZkEJ. For more options, visit https://groups.google.com/groups/opt_out.
Bill Walton
2012-Aug-16 21:12 UTC
Re: Re: hii friends,,,,,i m new to rails......i think there is a problem in destroy command .
On Thu, Aug 16, 2012 at 3:09 PM, AmateurCoder <amateurgolfer-xOqKmqBdiMhF6kxbq+BtvQ@public.gmane.org>wrote:> > Are you saying to run rails destroy model foo and foo doesn''t exist then > you should get an error or exception message? If you try this on the > command line rails destroy model foo, it will run the opposite of the > generate command; however, nothing ever existed, so can''t see the harm. > > On Thursday, August 16, 2012 12:03:47 AM UTC-5, Fahim Patel wrote: >> >> let me explain this problem ........ >> -------------------rails destroy-----------------------**-----this >> command destroy model,scaffold etc ..... >> problem is that if a model or other structure is exist than ,this command >> will destroy all the related file to it.......good ..till now no >> problem........... >> but problem is that if a model etc is not exist than till this command >> remove the file ...it should not be done.....there is no such a file name >> exist.......... >> some error or exception should be execute at this time .... >> >> i think this a problem??? >> if not than expalin me.......... >> >>The behaviour is consistent with other commands. If, for example, you run ''rake db:migrate'' and there are no migrations that need to be run, the task simply returns you to the command line without comment. One might make the argument that it _should_ say something like ''there are no migrations that need to be run.'' Or one might start submitting patches and see what the community thinks ;-) Best regards, Bill> Regards >> Fahim Babar Patel >> > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/uAJe7mwsZkEJ. > For more options, visit https://groups.google.com/groups/opt_out. > > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Fahim Patel
2012-Aug-17 05:19 UTC
Re: hii friends,,,,,i m new to rails......i think there is a problem in destroy command .
thanks for reply.....let me explain .... there is no such a testing model present rails destroy model testing invoke active_record remove migration.rb remove app/models/testing.rb invoke rspec remove spec/models/testing_spec.rb invoke factory_girl remove spec/factories/testings.rb but it is still removing files..... one more example rails destroy controller testing remove app/controllers/testing_controller.rb invoke erb remove app/views/testing invoke rspec remove spec/controllers/testing_controller_spec.rb invoke helper remove app/helpers/testing_helper.rb invoke rspec remove spec/helpers/testing_helper_spec.rb invoke assets invoke coffee remove app/assets/javascripts/testing.js.coffee invoke scss remove app/assets/stylesheets/testing.css.scss there is no testing controller prsent..... this thing is happen with all directory structure.... scaffold also do the same thing...... there should be any exception or error ?????????? On Thursday, August 16, 2012 10:33:47 AM UTC+5:30, Fahim Patel wrote:> > let me explain this problem ........ > -------------------rails destroy----------------------------this command > destroy model,scaffold etc ..... > problem is that if a model or other structure is exist than ,this command > will destroy all the related file to it.......good ..till now no > problem........... > but problem is that if a model etc is not exist than till this command > remove the file ...it should not be done.....there is no such a file name > exist.......... > some error or exception should be execute at this time .... > > i think this a problem??? > if not than expalin me.......... > > Regards > Fahim Babar Patel >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/SuNnoKhq9TgJ. For more options, visit https://groups.google.com/groups/opt_out.
Fahim Patel
2012-Aug-21 05:51 UTC
Re: hii friends,,,,,i m new to rails......i think there is a problem in destroy command .
i am waiting for ur reply Rails Community...can any one tell that this issue is problem or not?????i think it is a problem.......some exception should be thrown or any message........ this command removing the files which are not exist.........i know this issue is not a error ....but it make a confussion....... waiting for ur reply Fahim Babar Patel On Thursday, August 16, 2012 10:33:47 AM UTC+5:30, Fahim Patel wrote:> > let me explain this problem ........ > -------------------rails destroy----------------------------this command > destroy model,scaffold etc ..... > problem is that if a model or other structure is exist than ,this command > will destroy all the related file to it.......good ..till now no > problem........... > but problem is that if a model etc is not exist than till this command > remove the file ...it should not be done.....there is no such a file name > exist.......... > some error or exception should be execute at this time .... > > i think this a problem??? > if not than expalin me.......... > > Regards > Fahim Babar Patel >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/Enm56PmH54gJ. For more options, visit https://groups.google.com/groups/opt_out.
Fahim Patel
2012-Aug-22 05:40 UTC
[rspec-users] Fwd: [Rails] Re: hii friends, , , , , i m new to rails......i think there is a problem in destroy command .
friends there is no reply from Rails community.Lots of days are gone. can u answer this problem. Regards Fahim Babar Patel ---------- Forwarded message ---------- From: Fahim Patel <pafahim at gmail.com> Date: Fri, Aug 17, 2012 at 10:49 AM Subject: [Rails] Re: hii friends,,,,,i m new to rails......i think there is a problem in destroy command . To: rubyonrails-talk at googlegroups.com thanks for reply.....let me explain .... there is no such a testing model present rails destroy model testing invoke active_record remove migration.rb remove app/models/testing.rb invoke rspec remove spec/models/testing_spec.rb invoke factory_girl remove spec/factories/testings.rb but it is still removing files..... one more example rails destroy controller testing remove app/controllers/testing_controller.rb invoke erb remove app/views/testing invoke rspec remove spec/controllers/testing_controller_spec.rb invoke helper remove app/helpers/testing_helper.rb invoke rspec remove spec/helpers/testing_helper_spec.rb invoke assets invoke coffee remove app/assets/javascripts/testing.js.coffee invoke scss remove app/assets/stylesheets/testing.css.scss there is no testing controller prsent..... this thing is happen with all directory structure.... scaffold also do the same thing...... there should be any exception or error ?????????? On Thursday, August 16, 2012 10:33:47 AM UTC+5:30, Fahim Patel wrote:> > let me explain this problem ........ > -------------------rails destroy-----------------------**-----this > command destroy model,scaffold etc ..... > problem is that if a model or other structure is exist than ,this command > will destroy all the related file to it.......good ..till now no > problem........... > but problem is that if a model etc is not exist than till this command > remove the file ...it should not be done.....there is no such a file name > exist.......... > some error or exception should be execute at this time .... > > i think this a problem??? > if not than expalin me.......... > > Regards > Fahim Babar Patel >-- 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 at googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/SuNnoKhq9TgJ. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20120822/4e47a146/attachment.html>
David Chelimsky
2012-Aug-22 10:49 UTC
[rspec-users] Fwd: [Rails] Re: hii friends, , , , , i m new to rails......i think there is a problem in destroy command .
On Wed, Aug 22, 2012 at 12:40 AM, Fahim Patel <pafahim at gmail.com> wrote:> friends there is no reply from Rails community.Lots of days are gone. > can u answer this problem. > Regards > Fahim Babar Patel > > > ---------- Forwarded message ---------- > From: Fahim Patel <pafahim at gmail.com> > Date: Fri, Aug 17, 2012 at 10:49 AM > Subject: [Rails] Re: hii friends,,,,,i m new to rails......i think there is > a problem in destroy command . > To: rubyonrails-talk at googlegroups.com > > > thanks for reply.....let me explain .... > > there is no such a testing model present > rails destroy model testing > invoke active_record > remove migration.rb > remove app/models/testing.rb > invoke rspec > remove spec/models/testing_spec.rb > invoke factory_girl > remove spec/factories/testings.rb > > > but it is still removing files..... > > one more example > rails destroy controller testing > remove app/controllers/testing_controller.rb > invoke erb > remove app/views/testing > invoke rspec > remove spec/controllers/testing_controller_spec.rb > invoke helper > remove app/helpers/testing_helper.rb > invoke rspec > remove spec/helpers/testing_helper_spec.rb > invoke assets > invoke coffee > remove app/assets/javascripts/testing.js.coffee > invoke scss > remove app/assets/stylesheets/testing.css.scss > > there is no testing controller prsent..... > this thing is happen with all directory structure.... > scaffold also do the same thing...... > > there should be any exception or error ?????????? > > On Thursday, August 16, 2012 10:33:47 AM UTC+5:30, Fahim Patel wrote: >> >> let me explain this problem ........ >> -------------------rails destroy----------------------------this command >> destroy model,scaffold etc ..... >> problem is that if a model or other structure is exist than ,this command >> will destroy all the related file to it.......good ..till now no >> problem........... >> but problem is that if a model etc is not exist than till this command >> remove the file ...it should not be done.....there is no such a file name >> exist.......... >> some error or exception should be execute at this time .... >> >> i think this a problem??? >> if not than expalin me.......... >> >> Regards >> Fahim Babar PatelDid you see https://groups.google.com/d/msg/rubyonrails-talk/R0A9Oid_I8M/FIO9RzriiXkJ ? I think it answers your question.
Fahim Patel
2012-Aug-31 14:03 UTC
Re: hii friends,,,,,i m new to rails......i think there is a problem in destroy command .
can one explain this issue? On Thursday, August 16, 2012 10:33:47 AM UTC+5:30, Fahim Patel wrote:> > let me explain this problem ........ > -------------------rails destroy----------------------------this command > destroy model,scaffold etc ..... > problem is that if a model or other structure is exist than ,this command > will destroy all the related file to it.......good ..till now no > problem........... > but problem is that if a model etc is not exist than till this command > remove the file ...it should not be done.....there is no such a file name > exist.......... > some error or exception should be execute at this time .... > > i think this a problem??? > if not than expalin me.......... > > Regards > Fahim Babar Patel >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/A-nJvV9JaygJ. For more options, visit https://groups.google.com/groups/opt_out.
Colin Law
2012-Aug-31 14:09 UTC
Re: Re: hii friends,,,,,i m new to rails......i think there is a problem in destroy command .
On 31 August 2012 15:03, Fahim Patel <pafahim-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> can one explain this issue? > > On Thursday, August 16, 2012 10:33:47 AM UTC+5:30, Fahim Patel wrote: >> >> let me explain this problem ........ >> -------------------rails destroy----------------------------this command >> destroy model,scaffold etc ..... >> problem is that if a model or other structure is exist than ,this command >> will destroy all the related file to it.......good ..till now no >> problem........... >> but problem is that if a model etc is not exist than till this command >> remove the file ...it should not be done.....there is no such a file name >> exist.......... >> some error or exception should be execute at this time .... >> >> i think this a problem??? >> if not than expalin me..........I think the most likely cause is that the keys on your keyboard are sticking down causing all the repeated characters. If you are referring to the fact that rails destroy attempts to delete all the files that generate creates then that is just the way it is. I don''t think anyone really cares much how rails destroy works as it is virtually never used. I don''t think I have ever used it. If you want to remove stuff you can just delete the files you don''t want. Colin -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Jordon Bedwell
2012-Aug-31 14:17 UTC
Re: hii friends,,,,,i m new to rails......i think there is a problem in destroy command .
On Friday, 31 August 2012 09:03:40 UTC-5, Fahim Patel wrote:> > can one explain this issue? > > On Thursday, August 16, 2012 10:33:47 AM UTC+5:30, Fahim Patel wrote: >> >> let me explain this problem ........ >> -------------------rails destroy----------------------------this command >> destroy model,scaffold etc ..... >> problem is that if a model or other structure is exist than ,this command >> will destroy all the related file to it.......good ..till now no >> problem........... >> but problem is that if a model etc is not exist than till this command >> remove the file ...it should not be done.....there is no such a file name >> exist.......... >> some error or exception should be execute at this time .... >> >> i think this a problem??? >> if not than expalin me.......... >> >It''s not deleting anything. Even though it claims it is it''s just cruft in the terminal. It''s impossible to delete something that doesn''t exist, well I should not say impossible as anything is possible but none-the-less the cruft is still outputted even if it does not delete anything. Perhaps you should file a rails bug and ask them to adjust the message to imply "trying" instead of implying "doing". -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/l8a8h9EFxqgJ. For more options, visit https://groups.google.com/groups/opt_out.
Fahim Patel
2012-Sep-01 11:12 UTC
Re: Re: hii friends,,,,,i m new to rails......i think there is a problem in destroy command .
i have given a code snippet . u can watch it . i think this the big issue On Fri, Aug 31, 2012 at 7:47 PM, Jordon Bedwell <envygeeks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Friday, 31 August 2012 09:03:40 UTC-5, Fahim Patel wrote: >> >> can one explain this issue? >> >> On Thursday, August 16, 2012 10:33:47 AM UTC+5:30, Fahim Patel wrote: >>> >>> let me explain this problem ........ >>> -------------------rails destroy-----------------------**-----this >>> command destroy model,scaffold etc ..... >>> problem is that if a model or other structure is exist than ,this >>> command will destroy all the related file to it.......good ..till now no >>> problem........... >>> but problem is that if a model etc is not exist than till this command >>> remove the file ...it should not be done.....there is no such a file name >>> exist.......... >>> some error or exception should be execute at this time .... >>> >>> i think this a problem??? >>> if not than expalin me.......... >>> >> > It''s not deleting anything. Even though it claims it is it''s just cruft > in the terminal. It''s impossible to delete something that doesn''t exist, > well I should not say impossible as anything is possible but none-the-less > the cruft is still outputted even if it does not delete anything. Perhaps > you should file a rails bug and ask them to adjust the message to imply > "trying" instead of implying "doing". > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/l8a8h9EFxqgJ. > > For more options, visit https://groups.google.com/groups/opt_out. > > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Colin Law
2012-Sep-01 13:50 UTC
Re: Re: hii friends,,,,,i m new to rails......i think there is a problem in destroy command .
On 1 September 2012 12:12, Fahim Patel <pafahim-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> i have given a code snippet . > u can watch it . > i think this the big issueWhy do you think it is a big issue? Colin> > > On Fri, Aug 31, 2012 at 7:47 PM, Jordon Bedwell <envygeeks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> On Friday, 31 August 2012 09:03:40 UTC-5, Fahim Patel wrote: >>> >>> can one explain this issue? >>> >>> On Thursday, August 16, 2012 10:33:47 AM UTC+5:30, Fahim Patel wrote: >>>> >>>> let me explain this problem ........ >>>> -------------------rails destroy----------------------------this command >>>> destroy model,scaffold etc ..... >>>> problem is that if a model or other structure is exist than ,this >>>> command will destroy all the related file to it.......good ..till now no >>>> problem........... >>>> but problem is that if a model etc is not exist than till this command >>>> remove the file ...it should not be done.....there is no such a file name >>>> exist.......... >>>> some error or exception should be execute at this time .... >>>> >>>> i think this a problem??? >>>> if not than expalin me.......... >> >> >> It''s not deleting anything. Even though it claims it is it''s just cruft >> in the terminal. It''s impossible to delete something that doesn''t exist, >> well I should not say impossible as anything is possible but none-the-less >> the cruft is still outputted even if it does not delete anything. Perhaps >> you should file a rails bug and ask them to adjust the message to imply >> "trying" instead of implying "doing". >> >> -- >> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit >> https://groups.google.com/d/msg/rubyonrails-talk/-/l8a8h9EFxqgJ. >> >> For more options, visit https://groups.google.com/groups/opt_out. >> >> > > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/groups/opt_out. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Matt Jones
2012-Sep-02 15:59 UTC
Re: hii friends,,,,,i m new to rails......i think there is a problem in destroy command .
On Friday, 17 August 2012 01:19:52 UTC-4, Fahim Patel wrote:> > > one more example > rails destroy controller testing > remove app/controllers/testing_controller.rb > invoke erb > remove app/views/testing > invoke rspec > remove spec/controllers/testing_controller_spec.rb > invoke helper > remove app/helpers/testing_helper.rb > invoke rspec > remove spec/helpers/testing_helper_spec.rb > invoke assets > invoke coffee > remove app/assets/javascripts/testing.js.coffee > invoke scss > remove app/assets/stylesheets/testing.css.scss > > there is no testing controller prsent..... > this thing is happen with all directory structure.... > scaffold also do the same thing...... > > there should be any exception or error ?????????? > >No - the generator output is (slightly) confusing, but raising an exception in these cases would mean that you wouldn''t be able to use ''destroy'' to clean up after a generator if you''d manually removed any of the files it had created. --Matt Jones -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/euGp2xhJh9gJ. For more options, visit https://groups.google.com/groups/opt_out.