[rspec-users] Fwd: [Rails] Re: hii friends, , , , , i m new to rails......i think there is a problem in destroy command .

Fahim Patel pafahim at gmail.com
Wed Aug 22 05:40:24 UTC 2012

friends there is no reply from Rails community.Lots of days are gone.
can u answer this problem.
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

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>

More information about the rspec-users mailing list