I''m trying to use the Rails SVN trunk for a project, and can''t seem to get it working. I tried to do this so that I could play with the AJAX file upload progress bar. It seems that what I needed to do was apply two patches to the latest SVN trunk, based on this blog entry. AJAX and progress bar http://mir.aculo.us/th0fu/live-demo-upload-progress-bar-with-ajax-and-ruby-on-rails/view I figured I''d have to checkout the Rails trunk and try to get my rails app to use that instead of the gem installed in the ruby lib. I used the Edge Rails Wiki article to do this. I can checkout the projects individually or the trunk all at once, but the second half of the article, which deals with using SVN:externals, throws a standard error I can''t resolve through googling and forums. d:\projects\ruby\myproject\svn propedit svn:externals vendor\rails svn: ''vendor\rails'' is not a working copy This is what it showed when I had checked out each of the /trunk projects (activerecord, actionpack, etc.) individually and put them in /vendor/rails. I tried a different approach by deleting the /vendor/rails dir, then recreating it and checking out the entire Rails trunk at once. This put everything in /vendor/rails/trunk/, which I moved back into /vendor/rails. Now it throws this: svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR is set, and no ''editor-cmd'' run-time configuration option was found I can go and troubleshoot these missing config files, but I''m obviously missing the bigger picture here. I''ve gone through a bunch of docs, but I can''t seem to find the right walkthrough for using SVN, esp. when it deals directly with Rails. Rather than trudge through the rest of the details, can anyone shed light on a HOWTO to setting up Rails through SVN? Also, more importantly, how to apply patches, etc. I''m looking for more background and detail than it provided in these two places: http://dev.rubyonrails.com/ http://wiki.rubyonrails.com/rails/show/EdgeRails The trunk does not have the patches required in the AJAX blog entry. I mistakenly thought it would (one is a PATCH and one is a RESEARCH type: http://dev.rubyonrails.com/ticket/1026 http://dev.rubyonrails.com/ticket/933 I already tried to manually make all of the changes in the DIFF files, but this is clearly not the intended process. Any tips that pertain to SVN in Windows will help as well (I don''t think any of my issues are platform-related, though). Finally, after looking through RAILS_ROOT/config/environment.rb, it looks like if a /vendor/rails dir is present, it will override the gems lib, but having set this up I don''t know if that''s working. Eventually I''d like to use this do to patching of my own, but for the moment I just way to use the latest trunk and apply patches to my local copy. Thanks. Matt
Hi Matt, You''ll only need this one patch file for upload_progress to work: http://dev.rubyonrails.com/attachment/ticket/1026/upload_progress_1201 -1.diff The patch has changed quite a bit over time, and now only this one diff file is required. Can''t help you on the SVN on windows stuff, though... IMHO, if you''re seriously into developing web apps, do yourself a favor and get a Mac or install Linux ;) -- Thomas Am 20.04.2005 um 1:59 schrieb Matt Pelletier:> I''m trying to use the Rails SVN trunk for a project, and can''t > seem to get it working. I tried to do this so that I could play with > the > AJAX file upload progress bar. It seems that what I needed to do was > apply two patches to the latest SVN trunk, based on this blog entry. > > AJAX and progress bar > http://mir.aculo.us/th0fu/live-demo-upload-progress-bar-with-ajax-and- > ruby-on-rails/view > > I figured I''d have to checkout the Rails trunk and try to get my rails > app to use that instead of the gem installed in the ruby lib. I used > the > Edge Rails Wiki article to do this. I can checkout the projects > individually or the trunk all at once, but the second half of the > article, which deals with using SVN:externals, throws a standard error > I can''t resolve through googling and forums. > > d:\projects\ruby\myproject\svn propedit svn:externals vendor\rails > svn: ''vendor\rails'' is not a working copy > > This is what it showed when I had checked out each of the /trunk > projects (activerecord, actionpack, etc.) individually and put them in > /vendor/rails. I tried a different approach by deleting the > /vendor/rails dir, then recreating it and checking out the entire > Rails trunk at once. This put everything in /vendor/rails/trunk/, > which I moved back into /vendor/rails. Now it throws this: > > svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR is > set, and no ''editor-cmd'' run-time configuration option was found > > I can go and troubleshoot these missing config files, but I''m > obviously missing the bigger picture here. I''ve gone through a bunch > of docs, but I can''t seem to find the right walkthrough for using SVN, > esp. when it deals directly with Rails. > > Rather than trudge through the rest of the details, can anyone shed > light on a HOWTO to setting up Rails through SVN? Also, more > importantly, how to apply patches, etc. I''m looking for more > background and detail than it provided in these two places: > > http://dev.rubyonrails.com/ > http://wiki.rubyonrails.com/rails/show/EdgeRails > > The trunk does not have the patches required in the AJAX blog entry. I > mistakenly thought it would (one is a PATCH and one is a RESEARCH > type: > > http://dev.rubyonrails.com/ticket/1026 > http://dev.rubyonrails.com/ticket/933 > > I already tried to manually make all of the changes in the DIFF files, > but this is clearly not the intended process. Any tips that pertain to > SVN in Windows will help as well (I don''t think any of my issues are > platform-related, though). > > Finally, after looking through RAILS_ROOT/config/environment.rb, it > looks like if a /vendor/rails dir is present, it will override the > gems lib, but having set this up I don''t know if that''s working. > > Eventually I''d like to use this do to patching of my own, but for the > moment I just way to use the latest trunk and apply patches to my > local copy. Thanks. > > Matt > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Thomas, I did that, but it''s not working, likely due to some of the other aspects of my SVN install efforts. In general, is the best process to download a fresh Rails trunk (currently rev 1233) and then add/modify the listed files in the DIFF? Is there a way to automatically apply a DIFF? Thanks, Matt Thomas Fuchs wrote:> Hi Matt, > > You''ll only need this one patch file for upload_progress to work: > http://dev.rubyonrails.com/attachment/ticket/1026/upload_progress_1201 > -1.diff > > The patch has changed quite a bit over time, and now only this one diff > file is required. > > Can''t help you on the SVN on windows stuff, though... > IMHO, if you''re seriously into developing web apps, do yourself a favor > and get a Mac or install Linux ;) > > -- > Thomas > > Am 20.04.2005 um 1:59 schrieb Matt Pelletier: > >> I''m trying to use the Rails SVN trunk for a project, and can''t >> seem to get it working. I tried to do this so that I could play with the >> AJAX file upload progress bar. It seems that what I needed to do was >> apply two patches to the latest SVN trunk, based on this blog entry. >> >> AJAX and progress bar >> http://mir.aculo.us/th0fu/live-demo-upload-progress-bar-with-ajax-and- >> ruby-on-rails/view >> >> I figured I''d have to checkout the Rails trunk and try to get my rails >> app to use that instead of the gem installed in the ruby lib. I used the >> Edge Rails Wiki article to do this. I can checkout the projects >> individually or the trunk all at once, but the second half of the >> article, which deals with using SVN:externals, throws a standard >> error I can''t resolve through googling and forums. >> >> d:\projects\ruby\myproject\svn propedit svn:externals vendor\rails >> svn: ''vendor\rails'' is not a working copy >> >> This is what it showed when I had checked out each of the /trunk >> projects (activerecord, actionpack, etc.) individually and put them >> in /vendor/rails. I tried a different approach by deleting the >> /vendor/rails dir, then recreating it and checking out the entire >> Rails trunk at once. This put everything in /vendor/rails/trunk/, >> which I moved back into /vendor/rails. Now it throws this: >> >> svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR >> is set, and no ''editor-cmd'' run-time configuration option was found >> >> I can go and troubleshoot these missing config files, but I''m >> obviously missing the bigger picture here. I''ve gone through a bunch >> of docs, but I can''t seem to find the right walkthrough for using >> SVN, esp. when it deals directly with Rails. >> >> Rather than trudge through the rest of the details, can anyone shed >> light on a HOWTO to setting up Rails through SVN? Also, more >> importantly, how to apply patches, etc. I''m looking for more >> background and detail than it provided in these two places: >> >> http://dev.rubyonrails.com/ >> http://wiki.rubyonrails.com/rails/show/EdgeRails >> >> The trunk does not have the patches required in the AJAX blog entry. >> I mistakenly thought it would (one is a PATCH and one is a RESEARCH >> type: >> >> http://dev.rubyonrails.com/ticket/1026 >> http://dev.rubyonrails.com/ticket/933 >> >> I already tried to manually make all of the changes in the DIFF >> files, but this is clearly not the intended process. Any tips that >> pertain to SVN in Windows will help as well (I don''t think any of my >> issues are platform-related, though). >> >> Finally, after looking through RAILS_ROOT/config/environment.rb, it >> looks like if a /vendor/rails dir is present, it will override the >> gems lib, but having set this up I don''t know if that''s working. >> >> Eventually I''d like to use this do to patching of my own, but for the >> moment I just way to use the latest trunk and apply patches to my >> local copy. Thanks. >> >> Matt >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > >
Just checkout to vendor/rails as you suspected. No need for any wacky svn:external stuff. Use TortoiseSVN, it is an excellent client for windows. It''s very easy to make patches to submit or to apply patches to your rails working copy. And don''t listen to the naysayers, you can develop wonderful apps on windows. Now, getting them to run in a windows production environment is the real challenge :) On 4/19/05, Thomas Fuchs <thomas-9D208sng4xU@public.gmane.org> wrote:> Hi Matt, > > You''ll only need this one patch file for upload_progress to work: > http://dev.rubyonrails.com/attachment/ticket/1026/upload_progress_1201 > -1.diff > > The patch has changed quite a bit over time, and now only this one diff > file is required. > > Can''t help you on the SVN on windows stuff, though... > IMHO, if you''re seriously into developing web apps, do yourself a favor > and get a Mac or install Linux ;) > > -- > Thomas > > Am 20.04.2005 um 1:59 schrieb Matt Pelletier: > > > I''m trying to use the Rails SVN trunk for a project, and can''t > > seem to get it working. I tried to do this so that I could play with > > the > > AJAX file upload progress bar. It seems that what I needed to do was > > apply two patches to the latest SVN trunk, based on this blog entry. > > > > AJAX and progress bar > > http://mir.aculo.us/th0fu/live-demo-upload-progress-bar-with-ajax-and- > > ruby-on-rails/view > > > > I figured I''d have to checkout the Rails trunk and try to get my rails > > app to use that instead of the gem installed in the ruby lib. I used > > the > > Edge Rails Wiki article to do this. I can checkout the projects > > individually or the trunk all at once, but the second half of the > > article, which deals with using SVN:externals, throws a standard error > > I can''t resolve through googling and forums. > > > > d:\projects\ruby\myproject\svn propedit svn:externals vendor\rails > > svn: ''vendor\rails'' is not a working copy > > > > This is what it showed when I had checked out each of the /trunk > > projects (activerecord, actionpack, etc.) individually and put them in > > /vendor/rails. I tried a different approach by deleting the > > /vendor/rails dir, then recreating it and checking out the entire > > Rails trunk at once. This put everything in /vendor/rails/trunk/, > > which I moved back into /vendor/rails. Now it throws this: > > > > svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR is > > set, and no ''editor-cmd'' run-time configuration option was found > > > > I can go and troubleshoot these missing config files, but I''m > > obviously missing the bigger picture here. I''ve gone through a bunch > > of docs, but I can''t seem to find the right walkthrough for using SVN, > > esp. when it deals directly with Rails. > > > > Rather than trudge through the rest of the details, can anyone shed > > light on a HOWTO to setting up Rails through SVN? Also, more > > importantly, how to apply patches, etc. I''m looking for more > > background and detail than it provided in these two places: > > > > http://dev.rubyonrails.com/ > > http://wiki.rubyonrails.com/rails/show/EdgeRails > > > > The trunk does not have the patches required in the AJAX blog entry. I > > mistakenly thought it would (one is a PATCH and one is a RESEARCH > > type: > > > > http://dev.rubyonrails.com/ticket/1026 > > http://dev.rubyonrails.com/ticket/933 > > > > I already tried to manually make all of the changes in the DIFF files, > > but this is clearly not the intended process. Any tips that pertain to > > SVN in Windows will help as well (I don''t think any of my issues are > > platform-related, though). > > > > Finally, after looking through RAILS_ROOT/config/environment.rb, it > > looks like if a /vendor/rails dir is present, it will override the > > gems lib, but having set this up I don''t know if that''s working. > > > > Eventually I''d like to use this do to patching of my own, but for the > > moment I just way to use the latest trunk and apply patches to my > > local copy. Thanks. > > > > Matt > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- rick http://techno-weenie.net
Thanks. I had Tortoise SVN running when I first installed Rails, then I switched to Eclipse with it''s SVN plugin. I''ll try Tortoise again. Re. Windows. Believe me, I love OS X (beautiful GUI, great usability and well-thought-out tools, running on top of BSD? It''s the best of both worlds), but current technology environments require Windows as a primary production platform (Yes I know Mono runs on OS X ;)). I''m going to get a Mac Mini after Tiger is released, and use it as a dev server. It''s even smaller in the store than I thought it was. I can just carry it around in my backpack. I can''t wait. Matt Rick Olson wrote:> Just checkout to vendor/rails as you suspected. No need for any wacky > svn:external stuff. Use TortoiseSVN, it is an excellent client for > windows. It''s very easy to make patches to submit or to apply patches > to your rails working copy. > > And don''t listen to the naysayers, you can develop wonderful apps on > windows. Now, getting them to run in a windows production environment > is the real challenge :) > > On 4/19/05, Thomas Fuchs <thomas-9D208sng4xU@public.gmane.org> wrote: > >>Hi Matt, >> >>You''ll only need this one patch file for upload_progress to work: >>http://dev.rubyonrails.com/attachment/ticket/1026/upload_progress_1201 >>-1.diff >> >>The patch has changed quite a bit over time, and now only this one diff >>file is required. >> >>Can''t help you on the SVN on windows stuff, though... >>IMHO, if you''re seriously into developing web apps, do yourself a favor >>and get a Mac or install Linux ;) >> >>-- >>Thomas >> >>Am 20.04.2005 um 1:59 schrieb Matt Pelletier: >> >> >>>I''m trying to use the Rails SVN trunk for a project, and can''t >>>seem to get it working. I tried to do this so that I could play with >>>the >>>AJAX file upload progress bar. It seems that what I needed to do was >>>apply two patches to the latest SVN trunk, based on this blog entry. >>> >>>AJAX and progress bar >>>http://mir.aculo.us/th0fu/live-demo-upload-progress-bar-with-ajax-and- >>>ruby-on-rails/view >>> >>>I figured I''d have to checkout the Rails trunk and try to get my rails >>>app to use that instead of the gem installed in the ruby lib. I used >>>the >>>Edge Rails Wiki article to do this. I can checkout the projects >>>individually or the trunk all at once, but the second half of the >>>article, which deals with using SVN:externals, throws a standard error >>>I can''t resolve through googling and forums. >>> >>>d:\projects\ruby\myproject\svn propedit svn:externals vendor\rails >>>svn: ''vendor\rails'' is not a working copy >>> >>>This is what it showed when I had checked out each of the /trunk >>>projects (activerecord, actionpack, etc.) individually and put them in >>>/vendor/rails. I tried a different approach by deleting the >>>/vendor/rails dir, then recreating it and checking out the entire >>>Rails trunk at once. This put everything in /vendor/rails/trunk/, >>>which I moved back into /vendor/rails. Now it throws this: >>> >>>svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR is >>>set, and no ''editor-cmd'' run-time configuration option was found >>> >>>I can go and troubleshoot these missing config files, but I''m >>>obviously missing the bigger picture here. I''ve gone through a bunch >>>of docs, but I can''t seem to find the right walkthrough for using SVN, >>>esp. when it deals directly with Rails. >>> >>>Rather than trudge through the rest of the details, can anyone shed >>>light on a HOWTO to setting up Rails through SVN? Also, more >>>importantly, how to apply patches, etc. I''m looking for more >>>background and detail than it provided in these two places: >>> >>>http://dev.rubyonrails.com/ >>>http://wiki.rubyonrails.com/rails/show/EdgeRails >>> >>>The trunk does not have the patches required in the AJAX blog entry. I >>>mistakenly thought it would (one is a PATCH and one is a RESEARCH >>>type: >>> >>>http://dev.rubyonrails.com/ticket/1026 >>>http://dev.rubyonrails.com/ticket/933 >>> >>>I already tried to manually make all of the changes in the DIFF files, >>>but this is clearly not the intended process. Any tips that pertain to >>>SVN in Windows will help as well (I don''t think any of my issues are >>>platform-related, though). >>> >>>Finally, after looking through RAILS_ROOT/config/environment.rb, it >>>looks like if a /vendor/rails dir is present, it will override the >>>gems lib, but having set this up I don''t know if that''s working. >>> >>>Eventually I''d like to use this do to patching of my own, but for the >>>moment I just way to use the latest trunk and apply patches to my >>>local copy. Thanks. >>> >>>Matt >>>_______________________________________________ >>>Rails mailing list >>>Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >>>http://lists.rubyonrails.org/mailman/listinfo/rails >>> >> >>_______________________________________________ >>Rails mailing list >>Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >>http://lists.rubyonrails.org/mailman/listinfo/rails >> > > >
On 4/20/05, Matt Pelletier <pelletierm-A1PILTyJ15gXhy9q4Lf3Ug@public.gmane.org> wrote:> Thomas, > > I did that, but it''s not working, likely due to some of the other > aspects of my SVN install efforts. > > In general, is the best process to download a fresh Rails trunk > (currently rev 1233) and then add/modify the listed files in the DIFF? > Is there a way to automatically apply a DIFF?I can''t help with windows, But the command to apply a patch (diff) under unix is called patch. $ cd /path/to/vendor/rails/ $ patch -p0 < /path/to/patch/file.diff Cygwin installs patch, perhaps you should install it.> Thanks, > Matt > > Thomas Fuchs wrote: > > Hi Matt, > > > > You''ll only need this one patch file for upload_progress to work: > > http://dev.rubyonrails.com/attachment/ticket/1026/upload_progress_1201 > > -1.diff > > > > The patch has changed quite a bit over time, and now only this one diff > > file is required. > > > > Can''t help you on the SVN on windows stuff, though... > > IMHO, if you''re seriously into developing web apps, do yourself a favor > > and get a Mac or install Linux ;) > > > > -- > > Thomas > > > > Am 20.04.2005 um 1:59 schrieb Matt Pelletier: > > > >> I''m trying to use the Rails SVN trunk for a project, and can''t > >> seem to get it working. I tried to do this so that I could play with the > >> AJAX file upload progress bar. It seems that what I needed to do was > >> apply two patches to the latest SVN trunk, based on this blog entry. > >> > >> AJAX and progress bar > >> http://mir.aculo.us/th0fu/live-demo-upload-progress-bar-with-ajax-and- > >> ruby-on-rails/view > >> > >> I figured I''d have to checkout the Rails trunk and try to get my rails > >> app to use that instead of the gem installed in the ruby lib. I used the > >> Edge Rails Wiki article to do this. I can checkout the projects > >> individually or the trunk all at once, but the second half of the > >> article, which deals with using SVN:externals, throws a standard > >> error I can''t resolve through googling and forums. > >> > >> d:\projects\ruby\myproject\svn propedit svn:externals vendor\rails > >> svn: ''vendor\rails'' is not a working copy > >> > >> This is what it showed when I had checked out each of the /trunk > >> projects (activerecord, actionpack, etc.) individually and put them > >> in /vendor/rails. I tried a different approach by deleting the > >> /vendor/rails dir, then recreating it and checking out the entire > >> Rails trunk at once. This put everything in /vendor/rails/trunk/, > >> which I moved back into /vendor/rails. Now it throws this: > >> > >> svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR > >> is set, and no ''editor-cmd'' run-time configuration option was found > >> > >> I can go and troubleshoot these missing config files, but I''m > >> obviously missing the bigger picture here. I''ve gone through a bunch > >> of docs, but I can''t seem to find the right walkthrough for using > >> SVN, esp. when it deals directly with Rails. > >> > >> Rather than trudge through the rest of the details, can anyone shed > >> light on a HOWTO to setting up Rails through SVN? Also, more > >> importantly, how to apply patches, etc. I''m looking for more > >> background and detail than it provided in these two places: > >> > >> http://dev.rubyonrails.com/ > >> http://wiki.rubyonrails.com/rails/show/EdgeRails > >> > >> The trunk does not have the patches required in the AJAX blog entry. > >> I mistakenly thought it would (one is a PATCH and one is a RESEARCH > >> type: > >> > >> http://dev.rubyonrails.com/ticket/1026 > >> http://dev.rubyonrails.com/ticket/933 > >> > >> I already tried to manually make all of the changes in the DIFF > >> files, but this is clearly not the intended process. Any tips that > >> pertain to SVN in Windows will help as well (I don''t think any of my > >> issues are platform-related, though). > >> > >> Finally, after looking through RAILS_ROOT/config/environment.rb, it > >> looks like if a /vendor/rails dir is present, it will override the > >> gems lib, but having set this up I don''t know if that''s working. > >> > >> Eventually I''d like to use this do to patching of my own, but for the > >> moment I just way to use the latest trunk and apply patches to my > >> local copy. Thanks. > >> > >> Matt > >> _______________________________________________ > >> Rails mailing list > >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > >> http://lists.rubyonrails.org/mailman/listinfo/rails > >> > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Cheers Koz
Thomas, What would the new DIFF be based on the updates to rev 1234? The only issue I encountered applying your patch was in the ''read_query_params'' method in ''actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb'', which has changed since rev 1201. Thanks, Matt Thomas Fuchs wrote:> Hi Matt, > > You''ll only need this one patch file for upload_progress to work: > http://dev.rubyonrails.com/attachment/ticket/1026/upload_progress_1201 > -1.diff > > The patch has changed quite a bit over time, and now only this one diff > file is required. > > Can''t help you on the SVN on windows stuff, though... > IMHO, if you''re seriously into developing web apps, do yourself a favor > and get a Mac or install Linux ;) > > -- > Thomas > > Am 20.04.2005 um 1:59 schrieb Matt Pelletier: > >> I''m trying to use the Rails SVN trunk for a project, and can''t >> seem to get it working. I tried to do this so that I could play with the >> AJAX file upload progress bar. It seems that what I needed to do was >> apply two patches to the latest SVN trunk, based on this blog entry. >> >> AJAX and progress bar >> http://mir.aculo.us/th0fu/live-demo-upload-progress-bar-with-ajax-and- >> ruby-on-rails/view >> >> I figured I''d have to checkout the Rails trunk and try to get my rails >> app to use that instead of the gem installed in the ruby lib. I used the >> Edge Rails Wiki article to do this. I can checkout the projects >> individually or the trunk all at once, but the second half of the >> article, which deals with using SVN:externals, throws a standard >> error I can''t resolve through googling and forums. >> >> d:\projects\ruby\myproject\svn propedit svn:externals vendor\rails >> svn: ''vendor\rails'' is not a working copy >> >> This is what it showed when I had checked out each of the /trunk >> projects (activerecord, actionpack, etc.) individually and put them >> in /vendor/rails. I tried a different approach by deleting the >> /vendor/rails dir, then recreating it and checking out the entire >> Rails trunk at once. This put everything in /vendor/rails/trunk/, >> which I moved back into /vendor/rails. Now it throws this: >> >> svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR >> is set, and no ''editor-cmd'' run-time configuration option was found >> >> I can go and troubleshoot these missing config files, but I''m >> obviously missing the bigger picture here. I''ve gone through a bunch >> of docs, but I can''t seem to find the right walkthrough for using >> SVN, esp. when it deals directly with Rails. >> >> Rather than trudge through the rest of the details, can anyone shed >> light on a HOWTO to setting up Rails through SVN? Also, more >> importantly, how to apply patches, etc. I''m looking for more >> background and detail than it provided in these two places: >> >> http://dev.rubyonrails.com/ >> http://wiki.rubyonrails.com/rails/show/EdgeRails >> >> The trunk does not have the patches required in the AJAX blog entry. >> I mistakenly thought it would (one is a PATCH and one is a RESEARCH >> type: >> >> http://dev.rubyonrails.com/ticket/1026 >> http://dev.rubyonrails.com/ticket/933 >> >> I already tried to manually make all of the changes in the DIFF >> files, but this is clearly not the intended process. Any tips that >> pertain to SVN in Windows will help as well (I don''t think any of my >> issues are platform-related, though). >> >> Finally, after looking through RAILS_ROOT/config/environment.rb, it >> looks like if a /vendor/rails dir is present, it will override the >> gems lib, but having set this up I don''t know if that''s working. >> >> Eventually I''d like to use this do to patching of my own, but for the >> moment I just way to use the latest trunk and apply patches to my >> local copy. Thanks. >> >> Matt >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > >
Thomas, All working for me now. I used the changes in your 1201 DIFF instead of using what had been updated in the raw_post_data_fix.rb. Also, the progress bar wasn''t updating (no blue bar), apparently because the DIFF didn''t like some of the updates to prototype.js 1.2.1 (I updated to rails 12.1 today), so I just used a copy of 1.2.0 that was on your live demo. Thanks. Matt Matt Pelletier wrote:> Thomas, > > What would the new DIFF be based on the updates to rev 1234? The only > issue I encountered applying your patch was in the ''read_query_params'' > method in > ''actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb'', which > has changed since rev 1201. > > Thanks, > Matt > > > > Thomas Fuchs wrote: > >> Hi Matt, >> >> You''ll only need this one patch file for upload_progress to work: >> http://dev.rubyonrails.com/attachment/ticket/1026/upload_progress_1201 >> -1.diff >> >> The patch has changed quite a bit over time, and now only this one >> diff file is required. >> >> Can''t help you on the SVN on windows stuff, though... >> IMHO, if you''re seriously into developing web apps, do yourself a >> favor and get a Mac or install Linux ;) >> >> -- >> Thomas >> >> Am 20.04.2005 um 1:59 schrieb Matt Pelletier: >> >>> I''m trying to use the Rails SVN trunk for a project, and can''t >>> seem to get it working. I tried to do this so that I could play with >>> the >>> AJAX file upload progress bar. It seems that what I needed to do was >>> apply two patches to the latest SVN trunk, based on this blog entry. >>> >>> AJAX and progress bar >>> http://mir.aculo.us/th0fu/live-demo-upload-progress-bar-with-ajax-and- >>> ruby-on-rails/view >>> >>> I figured I''d have to checkout the Rails trunk and try to get my rails >>> app to use that instead of the gem installed in the ruby lib. I used >>> the >>> Edge Rails Wiki article to do this. I can checkout the projects >>> individually or the trunk all at once, but the second half of the >>> article, which deals with using SVN:externals, throws a standard >>> error I can''t resolve through googling and forums. >>> >>> d:\projects\ruby\myproject\svn propedit svn:externals vendor\rails >>> svn: ''vendor\rails'' is not a working copy >>> >>> This is what it showed when I had checked out each of the /trunk >>> projects (activerecord, actionpack, etc.) individually and put them >>> in /vendor/rails. I tried a different approach by deleting the >>> /vendor/rails dir, then recreating it and checking out the entire >>> Rails trunk at once. This put everything in /vendor/rails/trunk/, >>> which I moved back into /vendor/rails. Now it throws this: >>> >>> svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR >>> is set, and no ''editor-cmd'' run-time configuration option was found >>> >>> I can go and troubleshoot these missing config files, but I''m >>> obviously missing the bigger picture here. I''ve gone through a bunch >>> of docs, but I can''t seem to find the right walkthrough for using >>> SVN, esp. when it deals directly with Rails. >>> >>> Rather than trudge through the rest of the details, can anyone shed >>> light on a HOWTO to setting up Rails through SVN? Also, more >>> importantly, how to apply patches, etc. I''m looking for more >>> background and detail than it provided in these two places: >>> >>> http://dev.rubyonrails.com/ >>> http://wiki.rubyonrails.com/rails/show/EdgeRails >>> >>> The trunk does not have the patches required in the AJAX blog entry. >>> I mistakenly thought it would (one is a PATCH and one is a RESEARCH >>> type: >>> >>> http://dev.rubyonrails.com/ticket/1026 >>> http://dev.rubyonrails.com/ticket/933 >>> >>> I already tried to manually make all of the changes in the DIFF >>> files, but this is clearly not the intended process. Any tips that >>> pertain to SVN in Windows will help as well (I don''t think any of my >>> issues are platform-related, though). >>> >>> Finally, after looking through RAILS_ROOT/config/environment.rb, it >>> looks like if a /vendor/rails dir is present, it will override the >>> gems lib, but having set this up I don''t know if that''s working. >>> >>> Eventually I''d like to use this do to patching of my own, but for >>> the moment I just way to use the latest trunk and apply patches to >>> my local copy. Thanks. >>> >>> Matt >>> _______________________________________________ >>> Rails mailing list >>> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >>> http://lists.rubyonrails.org/mailman/listinfo/rails >>> >> >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> >> > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > >
On 4/20/05, Matt Pelletier <pelletierm-A1PILTyJ15gXhy9q4Lf3Ug@public.gmane.org> wrote: [snip]> svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR is > set, and no ''editor-cmd'' run-time configuration option was found >Erm, defining an environment variable is not that difficult... Go to system properties - advanced - environment variables - add one named SVN_EDITOR pointing to... err, an editor and you''re set :). Also, you can do svn ci -m "foo commit message".> I can go and troubleshoot these missing config files, but I''m obviously > missing the bigger picture here. I''ve gone through a bunch of docs, but > I can''t seem to find the right walkthrough for using SVN, esp. when it > deals directly with Rails. > > Rather than trudge through the rest of the details, can anyone shed > light on a HOWTO to setting up Rails through SVN? Also, more > importantly, how to apply patches, etc. I''m looking for more background > and detail than it provided in these two places: > > http://dev.rubyonrails.com/ > http://wiki.rubyonrails.com/rails/show/EdgeRails > > The trunk does not have the patches required in the AJAX blog entry. I > mistakenly thought it would (one is a PATCH and one is a RESEARCH type: > > http://dev.rubyonrails.com/ticket/1026 > http://dev.rubyonrails.com/ticket/933 > > I already tried to manually make all of the changes in the DIFF files, > but this is clearly not the intended process. Any tips that pertain to > SVN in Windows will help as well (I don''t think any of my issues are > platform-related, though). >Yes they are platform related, since you don''t get nice utilities in windows by default, but... 1. get unxutils 2. get winbash 3. add them and to path 4. profit!!!!111oneone Optionally, you might want to rename find, date and time in the unxutils package to find2, date2 and time2, since windows already has files named like this in path and you''ll get unexpected results. I''ve been happily using bash and bash scripts on windows for over and year without any major problems. Enjoy your shiny linuxy tools :) -- Cristi BALAN
On Wed, Apr 20, 2005 at 09:17:57PM +0300, Cristi BALAN wrote:> Yes they are platform related, since you don''t get nice utilities in > windows by default, but... > 1. get unxutils > 2. get winbash > 3. add them and to path > 4. profit!!!!111oneoneIf you like unix tools, get cygwin - it works great. (and includes ruby if you want to) Go to http://cygwin.com/ and click on the "install cygwin now" link. Be sure to use rxvt instead of the crappy CMD window. By the way: hello list, I''m new. Greetings from the Netherland. Joost.
On 4/20/05, Joost Diepenmaat <joost-wg/WqLBuUjRmR6Xm/wNWPw@public.gmane.org> wrote:> On Wed, Apr 20, 2005 at 09:17:57PM +0300, Cristi BALAN wrote: > > Yes they are platform related, since you don''t get nice utilities in > > windows by default, but... > > 1. get unxutils > > 2. get winbash > > 3. add them and to path > > 4. profit!!!!111oneone > > If you like unix tools, get cygwin - it works great. (and includes ruby > if you want to) Go to http://cygwin.com/ and click on the "install cygwin > now" link. Be sure to use rxvt instead of the crappy CMD window. >I said unxutils, not unixutils :) Unxutils is a package with a lot of the *nix... well, utils, compiled for windows. You just unzip them and you''re set. Sure beats the install time of cygwin. Also, if you really care for the linux environment, there''s colinux, which will give you an actual separate linux installation.> By the way: hello list, I''m new. Greetings from the Netherland. > > Joost. >Hi, I''m a lurker :) -- Cristi BALAN
Since we''re posting Win32 versions of cool unix utilities, there''s Tail for Win32 (http://tailforwin32.sourceforge.net/). It gives you a basic GUI for tail, but does not understand the color codes. On 4/20/05, Cristi BALAN <mental-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 4/20/05, Joost Diepenmaat <joost-wg/WqLBuUjRmR6Xm/wNWPw@public.gmane.org> wrote: > > On Wed, Apr 20, 2005 at 09:17:57PM +0300, Cristi BALAN wrote: > > > Yes they are platform related, since you don''t get nice utilities in > > > windows by default, but... > > > 1. get unxutils > > > 2. get winbash > > > 3. add them and to path > > > 4. profit!!!!111oneone > > > > If you like unix tools, get cygwin - it works great. (and includes ruby > > if you want to) Go to http://cygwin.com/ and click on the "install cygwin > > now" link. Be sure to use rxvt instead of the crappy CMD window. > > > I said unxutils, not unixutils :) > > Unxutils is a package with a lot of the *nix... well, utils, compiled > for windows. You just unzip them and you''re set. Sure beats the > install time of cygwin. > > Also, if you really care for the linux environment, there''s colinux, > which will give you an actual separate linux installation. > > > By the way: hello list, I''m new. Greetings from the Netherland. > > > > Joost. > > > Hi, I''m a lurker :) > > -- > Cristi BALAN > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- rick http://techno-weenie.net
Heya :)> -----Original Message----- > From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails- > bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Cristi BALAN > Sent: Wednesday, April 20, 2005 2:18 PM > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: Re: [Rails] SVN, Rails and applying patches > > Yes they are platform related, since you don''t get nice utilities in > windows by default, but... > 1. get unxutils > 2. get winbash > 3. add them and to path > 4. profit!!!!111oneone > > Optionally, you might want to rename find, date and time in the > unxutils package to find2, date2 and time2, since windows already has > files named like this in path and you''ll get unexpected results. > > I''ve been happily using bash and bash scripts on windows for over and > year without any major problems. > > Enjoy your shiny linuxy tools :)MS also has a supported, free package of shells, utilities and so on for running a *nix stuke environment. Including a free X11 server. http://www.microsoft.com/windows/sfu/ Soulhuntre ---------- http://www.girl2.com - my girls http://www.the-estate.com - my legacy http://wiki.thegreybook.com - my project http://weblog.soulhuntre.com - my thoughts