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 <pafa...@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-t...@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-t...@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/-/SuNnoKhq9TgJ.

For more options, visit https://groups.google.com/groups/opt_out.
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to