I generated a model "user" @ first. then i added some code into the model. after this, i generated a scaffold for model "user" and controller "admin". but i dont need the scaffold again so i "ruby script/destroy scaffold user admin" the model and controller has been deleted. i check out the app/model/ dir, their is a file called .rb.swap. i need to recover the model user, but how?can i recover it from the .rb.swap file?what is the .rb.swap for? --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Ruby Nudy wrote:> I generated a model "user" @ first. > > then i added some code into the model. > > after this, i generated a scaffold for model "user" and controller > "admin". > > but i dont need the scaffold again so i "ruby script/destroy scaffold > user admin" > > the model and controller has been deleted. > > i check out the app/model/ dir, their is a file called .rb.swap. > > i need to recover the model user, but how?can i recover it from > the .rb.swap file?what is the .rb.swap for? > > > > > >That was likely generated by whatever text editor you used to edit the model. vi? But it''s definitely not part of Rails and there''s nothing Rails can do with it. -- http://www.5valleys.com/ http://www.workingwithrails.com/person/8078 --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---