On Thu, Aug 16, 2012 at 3:09 PM, AmateurCoder <amateurgol...@insightbb.com>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@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > 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@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.