Hi everyone, I am a newbie on rails. I tried to use svn to control my code version. However, I found the following problems: When I typed in "ruby script/generate scaffold product", the added files were not applied in svn. The same problem occurred when I deleted some files by typing in "ruby script/destroy". In this case, the removed file were not applied in svn. How to fix this problem? thanks in advance, xiahong
Files aren''t automatically added or deleted in svn. You have to explicitly perform an "svn add filename" or "svn delete filename". -- Posted via http://www.ruby-forum.com/.
is there any easy way to do this? For example, if i type in "ruby script/destroy model user", i have to do "svn delete filename" for multiple files. 2009/7/13 Terry Walker <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>> > Files aren''t automatically added or deleted in svn. You have to > explicitly perform an "svn add filename" or "svn delete filename". > > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
gaoxh gaoxh04 wrote:> is there any easy way to do this? > For example, if i type in "ruby script/destroy model user", i have to do > "svn delete filename" for multiple files.If you had read the help text for script/generate and script/destroy, you would know that -c will do what you want. But please don''t use Subversion. It uses an inefficient centralized model of version control. Git takes a little getting used to, but it''s more capable and you''ll be a lot happier with it. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/.