Try this in a subversion-controlled rails project:
script/generate model –svn MyModel
I just learned that adding the `–svn` or `-c`, if you prefer, will actually `svn add` the generated files for you!
Try this in a subversion-controlled rails project:
script/generate model –svn MyModel
I just learned that adding the `–svn` or `-c`, if you prefer, will actually `svn add` the generated files for you!
6 Comments
I get a “Couldn’t find ‘–svn’ generator ” message. -c produces the same results.
Any idea what it could be?
I had the same problem when I tried to auto add my generated migration to svn. this worked, though:
./script/generate migration –svn name_of_my_super_sweer_migration
I assume that will make it work for the other generators, though I haven’t tried it
okay, the comment post stripped a bunch of characters out, let me see if I can try this again:
“./script/generate migration –svn set_time_defaults_for_users_users_to_nil”
okay, just to clarify, there are two ” - ” behind the svn option, you can figure it out. (should look like ” - -svn”)
I\’m love this great website. Many thanks guy
Emm.. I appreciate your comment about my slimy pillow Wanna good joke? What is Beethoven doing in his coffin right now? Decomposing.
Post a Comment