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 [email protected]. To unsubscribe from this group, send email to [email protected]. 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.

