On Wed, Aug 22, 2012 at 12:40 AM, Fahim Patel <pafa...@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 <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

Did you see 
https://groups.google.com/d/msg/rubyonrails-talk/R0A9Oid_I8M/FIO9RzriiXkJ
? I think it answers your question.
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to