How to integrate svn with rails

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”.

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 W. [email protected]

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
[email protected]