From Nathan.Zook at amd.com Thu Jul 5 17:14:33 2007 From: Nathan.Zook at amd.com (Zook, Nathan) Date: Thu, 5 Jul 2007 16:14:33 -0500 Subject: [Instantrails-users] Instarails with existing Ruby installation Message-ID: <7986CEFCE5C2954A88BEE2CAB6FAB374038EA264@SAUSEXMB2.amd.com> I've been doing development for the last few months with GTK on ruby. I need Rails for a project I'm starting. The installer appears to detect the existing installation sufficiently well to not step on it (or %PATH%), but this is causing more problems (and even more later). Namely, rails is not in my path, I'm not going to be able to follow the tutorial. Much more importantly, my rails aps are going to hit the non-rails installation directory. The simple solution (to me) is for rails to do the necessary installs into any existing ruby install it finds. I'm tempted to poke into source & try to do it myself, but I'm afraid of there being a bunch of places which hard-code the directory. And yes, I'm going to be working on both projects now... Help? Nathan Zook -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20070705/80c34a88/attachment-0001.html From curt.hibbs at gmail.com Fri Jul 6 10:04:28 2007 From: curt.hibbs at gmail.com (Curt Hibbs) Date: Fri, 6 Jul 2007 09:04:28 -0500 Subject: [Instantrails-users] Instarails with existing Ruby installation In-Reply-To: <7986CEFCE5C2954A88BEE2CAB6FAB374038EA264@SAUSEXMB2.amd.com> References: <7986CEFCE5C2954A88BEE2CAB6FAB374038EA264@SAUSEXMB2.amd.com> Message-ID: <31d15f490707060704x73c7941lf63881c63702ff0f@mail.gmail.com> On 7/5/07, Zook, Nathan wrote: > > I've been doing development for the last few months with GTK on ruby. I > need Rails for a project I'm starting. The installer appears to detect the > existing installation sufficiently well to not step on it (or %PATH%), but > this is causing more problems (and even more later). Namely, rails is not > in my path, I'm not going to be able to follow the tutorial. Much more > importantly, my rails aps are going to hit the non-rails installation > directory. > > The simple solution (to me) is for rails to do the necessary installs > into any existing ruby install it finds. I'm tempted to poke into source & > try to do it myself, but I'm afraid of there being a bunch of places which > hard-code the directory. > > And yes, I'm going to be working on both projects now? > > Help? > > Nathan Zook > This is a little bit confusing since Instant Rails does not have an installer, but let me take some educated gueses. The whole point of Instant Rails is to not modify your system environment: no registry entries, no path changes. When you want to do things in a particular instance of Instant Rails you have to do it through the Instant Rails manager application (InstantRails.exe). So, for example, when you want to use the "rails" command you would use IR's menus and select the menu command "Rails Applications > Open Ruby Console Window". That will open a console window, and in that console window (only) IR *will* be on the path... as the first item in the path. That way everything you do in that window will uses the Ruby/Rails that belongs to that instance of IR. The same thing happens when you do other things from the IR manager (like starting a Rails Apps with Mongrel) -- that instance of IR is put on the path for that running instance only. Curt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20070706/47a0cdae/attachment.html From Nathan.Zook at amd.com Fri Jul 6 13:36:19 2007 From: Nathan.Zook at amd.com (Zook, Nathan) Date: Fri, 6 Jul 2007 12:36:19 -0500 Subject: [Instantrails-users] Instarails with existing Ruby installation In-Reply-To: <31d15f490707060704x73c7941lf63881c63702ff0f@mail.gmail.com> References: <7986CEFCE5C2954A88BEE2CAB6FAB374038EA264@SAUSEXMB2.amd.com> <31d15f490707060704x73c7941lf63881c63702ff0f@mail.gmail.com> Message-ID: <7986CEFCE5C2954A88BEE2CAB6FAB374038EA56B@SAUSEXMB2.amd.com> I guess I wasn't specific enough. I was following the tutorial at http://www.onlamp.com/pub/a/onlamp/2006/12/14/revisiting-ruby-on-rails-r evisited.html?page=2#generate I'm going to use source control, so my App directory structure looks like this: C:\App branches tags trunk So I did: c: mkdir App cd App mkdir branches mkdir tags rails trunk No dice. ________________________________ From: instantrails-users-bounces at rubyforge.org [mailto:instantrails-users-bounces at rubyforge.org] On Behalf Of Curt Hibbs Sent: Friday, July 06, 2007 9:04 AM To: instantrails-users at rubyforge.org Subject: Re: [Instantrails-users] Instarails with existing Ruby installation On 7/5/07, Zook, Nathan wrote: I've been doing development for the last few months with GTK on ruby. I need Rails for a project I'm starting. The installer appears to detect the existing installation sufficiently well to not step on it (or %PATH%), but this is causing more problems (and even more later). Namely, rails is not in my path, I'm not going to be able to follow the tutorial. Much more importantly, my rails aps are going to hit the non-rails installation directory. The simple solution (to me) is for rails to do the necessary installs into any existing ruby install it finds. I'm tempted to poke into source & try to do it myself, but I'm afraid of there being a bunch of places which hard-code the directory. And yes, I'm going to be working on both projects now... Help? Nathan Zook This is a little bit confusing since Instant Rails does not have an installer, but let me take some educated gueses. The whole point of Instant Rails is to not modify your system environment: no registry entries, no path changes. When you want to do things in a particular instance of Instant Rails you have to do it through the Instant Rails manager application ( InstantRails.exe). So, for example, when you want to use the "rails" command you would use IR's menus and select the menu command "Rails Applications > Open Ruby Console Window". That will open a console window, and in that console window (only) IR *will* be on the path... as the first item in the path. That way everything you do in that window will uses the Ruby/Rails that belongs to that instance of IR. The same thing happens when you do other things from the IR manager (like starting a Rails Apps with Mongrel) -- that instance of IR is put on the path for that running instance only. Curt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20070706/0199ce55/attachment.html From bill.walton at charter.net Fri Jul 6 14:40:29 2007 From: bill.walton at charter.net (Bill Walton) Date: Fri, 6 Jul 2007 13:40:29 -0500 Subject: [Instantrails-users] Instarails with existing Ruby installation References: <7986CEFCE5C2954A88BEE2CAB6FAB374038EA264@SAUSEXMB2.amd.com><31d15f490707060704x73c7941lf63881c63702ff0f@mail.gmail.com> <7986CEFCE5C2954A88BEE2CAB6FAB374038EA56B@SAUSEXMB2.amd.com> Message-ID: <02a501c7bffd$20b23710$6401a8c0@Presario> Hi Nathan, Zook, Nathan wrote: > I guess I wasn't specific enough. I was following the > tutorial at > I'm going to use source control, so my App directory > structure looks like this: > C:\App > branches > tags > trunk > > So I did: > c: > mkdir App > cd App > mkdir branches > mkdir tags > rails trunk > > No dice. Your 'rails trunk' command generated a Rails skeleton app named 'trunk'. If you're planning to use Subversion (SVN) for your source code control system, that's not how it works. Setup your SVN repository, generate your Rails app per the tutorial, then import the app into your repository's trunk. I'll be doing a tutorial on SVN for the cookbook app in the next couple of months but, for now, you might want to check out the one at: http://www.yasashiisyndicate.org/wp-content/uploads/2006/05/subversion.html HTH, Bill From Nathan.Zook at AMD.COM Fri Jul 6 15:43:41 2007 From: Nathan.Zook at AMD.COM (Zook, Nathan) Date: Fri, 6 Jul 2007 14:43:41 -0500 Subject: [Instantrails-users] Instarails with existing Ruby installation In-Reply-To: <02a501c7bffd$20b23710$6401a8c0@Presario> References: <7986CEFCE5C2954A88BEE2CAB6FAB374038EA264@SAUSEXMB2.amd.com><31d15f490707060704x73c7941lf63881c63702ff0f@mail.gmail.com> <7986CEFCE5C2954A88BEE2CAB6FAB374038EA56B@SAUSEXMB2.amd.com> <02a501c7bffd$20b23710$6401a8c0@Presario> Message-ID: <7986CEFCE5C2954A88BEE2CAB6FAB374039D3135@SAUSEXMB2.amd.com> No. It looks like this: C:\App>rails trunk 'rails' is not recognized as an internal or external command, operable program or batch file. Which is why I was talking about the path. Our group policy is to checkout at the root level and to delete expired branches, which is why I was trying to create trunk under App instead of App under C:\. Nathan -----Original Message----- From: instantrails-users-bounces at rubyforge.org [mailto:instantrails-users-bounces at rubyforge.org] On Behalf Of Bill Walton Sent: Friday, July 06, 2007 1:40 PM To: instantrails-users at rubyforge.org Subject: Re: [Instantrails-users] Instarails with existing Ruby installation Hi Nathan, Zook, Nathan wrote: > I guess I wasn't specific enough. I was following the > tutorial at > I'm going to use source control, so my App directory > structure looks like this: > C:\App > branches > tags > trunk > > So I did: > c: > mkdir App > cd App > mkdir branches > mkdir tags > rails trunk > > No dice. Your 'rails trunk' command generated a Rails skeleton app named 'trunk'. If you're planning to use Subversion (SVN) for your source code control system, that's not how it works. Setup your SVN repository, generate your Rails app per the tutorial, then import the app into your repository's trunk. I'll be doing a tutorial on SVN for the cookbook app in the next couple of months but, for now, you might want to check out the one at: http://www.yasashiisyndicate.org/wp-content/uploads/2006/05/subversion.h tml HTH, Bill _______________________________________________ Instantrails-users mailing list Instantrails-users at rubyforge.org http://rubyforge.org/mailman/listinfo/instantrails-users From curt.hibbs at gmail.com Fri Jul 6 17:31:48 2007 From: curt.hibbs at gmail.com (Curt Hibbs) Date: Fri, 6 Jul 2007 16:31:48 -0500 Subject: [Instantrails-users] Instarails with existing Ruby installation In-Reply-To: <7986CEFCE5C2954A88BEE2CAB6FAB374039D3135@SAUSEXMB2.amd.com> References: <7986CEFCE5C2954A88BEE2CAB6FAB374038EA264@SAUSEXMB2.amd.com> <31d15f490707060704x73c7941lf63881c63702ff0f@mail.gmail.com> <7986CEFCE5C2954A88BEE2CAB6FAB374038EA56B@SAUSEXMB2.amd.com> <02a501c7bffd$20b23710$6401a8c0@Presario> <7986CEFCE5C2954A88BEE2CAB6FAB374039D3135@SAUSEXMB2.amd.com> Message-ID: <31d15f490707061431q3c450eb8g141e8f7330bb437d@mail.gmail.com> How did you get your command prompt? You'll only get the path set correctly if you open your command window *through* the Instant Rails menus. Of course, as Bill said, even if you do that, you do not want to do "rails trunk" unless you are trying to create a Rails application named "trunk". Curt On 7/6/07, Zook, Nathan wrote: > > No. It looks like this: > C:\App>rails trunk > 'rails' is not recognized as an internal or external command, > operable program or batch file. > > Which is why I was talking about the path. Our group policy is to > checkout at the root level and to delete expired branches, which is why > I was trying to create trunk under App instead of App under C:\. > > Nathan > > > > -----Original Message----- > From: instantrails-users-bounces at rubyforge.org > [mailto:instantrails-users-bounces at rubyforge.org] On Behalf Of Bill > Walton > Sent: Friday, July 06, 2007 1:40 PM > To: instantrails-users at rubyforge.org > Subject: Re: [Instantrails-users] Instarails with existing Ruby > installation > > Hi Nathan, > > Zook, Nathan wrote: > > > I guess I wasn't specific enough. I was following the > > tutorial at > > > I'm going to use source control, so my App directory > > structure looks like this: > > C:\App > > branches > > tags > > trunk > > > > So I did: > > c: > > mkdir App > > cd App > > mkdir branches > > mkdir tags > > rails trunk > > > > No dice. > > Your 'rails trunk' command generated a Rails skeleton app named 'trunk'. > If > you're planning to use Subversion (SVN) for your source code control > system, > that's not how it works. Setup your SVN repository, generate your Rails > app > per the tutorial, then import the app into your repository's trunk. > I'll be > doing a tutorial on SVN for the cookbook app in the next couple of > months > but, for now, you might want to check out the one at: > http://www.yasashiisyndicate.org/wp-content/uploads/2006/05/subversion.h > tml > > HTH, > Bill > > > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users > > > > > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20070706/9a95cdd9/attachment.html From Nathan.Zook at amd.com Mon Jul 9 09:17:03 2007 From: Nathan.Zook at amd.com (Zook, Nathan) Date: Mon, 9 Jul 2007 08:17:03 -0500 Subject: [Instantrails-users] Instarails with existing Ruby installation In-Reply-To: <31d15f490707061431q3c450eb8g141e8f7330bb437d@mail.gmail.com> References: <7986CEFCE5C2954A88BEE2CAB6FAB374038EA264@SAUSEXMB2.amd.com> <31d15f490707060704x73c7941lf63881c63702ff0f@mail.gmail.com> <7986CEFCE5C2954A88BEE2CAB6FAB374038EA56B@SAUSEXMB2.amd.com> <02a501c7bffd$20b23710$6401a8c0@Presario> <7986CEFCE5C2954A88BEE2CAB6FAB374039D3135@SAUSEXMB2.amd.com> <31d15f490707061431q3c450eb8g141e8f7330bb437d@mail.gmail.com> Message-ID: <7986CEFCE5C2954A88BEE2CAB6FAB374039D32CB@SAUSEXMB2.amd.com> Hmm... What a tantalizing clue! Let's see. I installed rails...there. Okay. I see an exe. Run it. Window comes up, so that must be it. Menus... Okay, that's the little button NOT on the title bar... Help, Log Files, Configure, Rails Applications, Restart Server, Stop Servers.... Should not be anything but Rails Applications... Manage Rails Applications, Open Ruby Console Window, Open Windows Explorer... Cannot be anything but Manage Rails Applications, but how is a DOS prompt a Rails Application? ... Hmm... Lot of stuff to look at here. Create New Rails App. Well, that's what I want to do really, not get a DOS Prompt... Eureka! Okay guys, that REALLY needs to be tutorialized. ;-) Thanks. ________________________________ From: instantrails-users-bounces at rubyforge.org [mailto:instantrails-users-bounces at rubyforge.org] On Behalf Of Curt Hibbs Sent: Friday, July 06, 2007 4:32 PM To: instantrails-users at rubyforge.org Subject: Re: [Instantrails-users] Instarails with existing Ruby installation How did you get your command prompt? You'll only get the path set correctly if you open your command window *through* the Instant Rails menus. Of course, as Bill said, even if you do that, you do not want to do "rails trunk" unless you are trying to create a Rails application named "trunk". Curt On 7/6/07, Zook, Nathan wrote: No. It looks like this: C:\App>rails trunk 'rails' is not recognized as an internal or external command, operable program or batch file. Which is why I was talking about the path. Our group policy is to checkout at the root level and to delete expired branches, which is why I was trying to create trunk under App instead of App under C:\. Nathan -----Original Message----- From: instantrails-users-bounces at rubyforge.org [mailto:instantrails-users-bounces at rubyforge.org] On Behalf Of Bill Walton Sent: Friday, July 06, 2007 1:40 PM To: instantrails-users at rubyforge.org Subject: Re: [Instantrails-users] Instarails with existing Ruby installation Hi Nathan, Zook, Nathan wrote: > I guess I wasn't specific enough. I was following the > tutorial at > I'm going to use source control, so my App directory > structure looks like this: > C:\App > branches > tags > trunk > > So I did: > c: > mkdir App > cd App > mkdir branches > mkdir tags > rails trunk > > No dice. Your 'rails trunk' command generated a Rails skeleton app named 'trunk'. If you're planning to use Subversion (SVN) for your source code control system, that's not how it works. Setup your SVN repository, generate your Rails app per the tutorial, then import the app into your repository's trunk. I'll be doing a tutorial on SVN for the cookbook app in the next couple of months but, for now, you might want to check out the one at: http://www.yasashiisyndicate.org/wp-content/uploads/2006/05/subversion.h tml HTH, Bill _______________________________________________ Instantrails-users mailing list Instantrails-users at rubyforge.org http://rubyforge.org/mailman/listinfo/instantrails-users _______________________________________________ Instantrails-users mailing list Instantrails-users at rubyforge.org http://rubyforge.org/mailman/listinfo/instantrails-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20070709/80f0158f/attachment.html From bill.walton at charter.net Mon Jul 9 09:44:45 2007 From: bill.walton at charter.net (Bill Walton) Date: Mon, 9 Jul 2007 08:44:45 -0500 Subject: [Instantrails-users] Instarails with existing Ruby installation References: <7986CEFCE5C2954A88BEE2CAB6FAB374038EA264@SAUSEXMB2.amd.com><31d15f490707060704x73c7941lf63881c63702ff0f@mail.gmail.com><7986CEFCE5C2954A88BEE2CAB6FAB374038EA56B@SAUSEXMB2.amd.com><02a501c7bffd$20b23710$6401a8c0@Presario><7986CEFCE5C2954A88BEE2CAB6FAB374039D3135@SAUSEXMB2.amd.com><31d15f490707061431q3c450eb8g141e8f7330bb437d@mail.gmail.com> <7986CEFCE5C2954A88BEE2CAB6FAB374039D32CB@SAUSEXMB2.amd.com> Message-ID: <003a01c7c22f$502bd5d0$6401a8c0@Presario> Hi Nathan, Zook, Nathan wrote: > Okay guys, that REALLY needs to be tutorialized. ;-) Take a look at http://instantrails.rubyforge.org/tutorial/index.html. I haven't updated it for Rails 1.2.x, but the Instant Rails setup / config / etc. should still be valid. Happy for feedback. Best regards, Bill From wfroelich at dbsnow.com Mon Jul 9 11:04:21 2007 From: wfroelich at dbsnow.com (William (Bill) Froelich) Date: Mon, 9 Jul 2007 10:04:21 -0500 Subject: [Instantrails-users] Instarails with existing Ruby installation In-Reply-To: <7986CEFCE5C2954A88BEE2CAB6FAB374039D32CB@SAUSEXMB2.amd.com> Message-ID: Hopefully the screen shot below will come through. To get the DOS prompt mentioned you need to go to Rails Applications | Open Ruby Console Window from the icon to the left of the Apache button. This will open a dos prompt properly pathed to the Instant Rails ruby and rails tree. From there you can then navigate anywhere you want and create your app (i.e. C:\App> rails trunk ) Hope this helps! --Bill ________________________________ From: instantrails-users-bounces at rubyforge.org [mailto:instantrails-users-bounces at rubyforge.org] On Behalf Of Zook, Nathan Sent: Monday, July 09, 2007 8:17 AM To: instantrails-users at rubyforge.org Subject: Re: [Instantrails-users] Instarails with existing Ruby installation Hmm... What a tantalizing clue! Let's see. I installed rails...there. Okay. I see an exe. Run it. Window comes up, so that must be it. Menus... Okay, that's the little button NOT on the title bar... Help, Log Files, Configure, Rails Applications, Restart Server, Stop Servers.... Should not be anything but Rails Applications... Manage Rails Applications, Open Ruby Console Window, Open Windows Explorer... Cannot be anything but Manage Rails Applications, but how is a DOS prompt a Rails Application? ... Hmm... Lot of stuff to look at here. Create New Rails App. Well, that's what I want to do really, not get a DOS Prompt... Eureka! Okay guys, that REALLY needs to be tutorialized. ;-) Thanks. ________________________________ From: instantrails-users-bounces at rubyforge.org [mailto:instantrails-users-bounces at rubyforge.org] On Behalf Of Curt Hibbs Sent: Friday, July 06, 2007 4:32 PM To: instantrails-users at rubyforge.org Subject: Re: [Instantrails-users] Instarails with existing Ruby installation How did you get your command prompt? You'll only get the path set correctly if you open your command window *through* the Instant Rails menus. Of course, as Bill said, even if you do that, you do not want to do "rails trunk" unless you are trying to create a Rails application named "trunk". Curt On 7/6/07, Zook, Nathan wrote: No. It looks like this: C:\App>rails trunk 'rails' is not recognized as an internal or external command, operable program or batch file. Which is why I was talking about the path. Our group policy is to checkout at the root level and to delete expired branches, which is why I was trying to create trunk under App instead of App under C:\. Nathan -----Original Message----- From: instantrails-users-bounces at rubyforge.org [mailto:instantrails-users-bounces at rubyforge.org] On Behalf Of Bill Walton Sent: Friday, July 06, 2007 1:40 PM To: instantrails-users at rubyforge.org Subject: Re: [Instantrails-users] Instarails with existing Ruby installation Hi Nathan, Zook, Nathan wrote: > I guess I wasn't specific enough. I was following the > tutorial at > I'm going to use source control, so my App directory > structure looks like this: > C:\App > branches > tags > trunk > > So I did: > c: > mkdir App > cd App > mkdir branches > mkdir tags > rails trunk > > No dice. Your 'rails trunk' command generated a Rails skeleton app named 'trunk'. If you're planning to use Subversion (SVN) for your source code control system, that's not how it works. Setup your SVN repository, generate your Rails app per the tutorial, then import the app into your repository's trunk. I'll be doing a tutorial on SVN for the cookbook app in the next couple of months but, for now, you might want to check out the one at: http://www.yasashiisyndicate.org/wp-content/uploads/2006/05/subversion.h tml HTH, Bill _______________________________________________ Instantrails-users mailing list Instantrails-users at rubyforge.org http://rubyforge.org/mailman/listinfo/instantrails-users _______________________________________________ Instantrails-users mailing list Instantrails-users at rubyforge.org http://rubyforge.org/mailman/listinfo/instantrails-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20070709/cca9789e/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 12642 bytes Desc: ir.jpg Url : http://rubyforge.org/pipermail/instantrails-users/attachments/20070709/cca9789e/attachment-0001.jpe From hennegav at matc.edu Wed Jul 25 17:07:28 2007 From: hennegav at matc.edu (Vicky Hennegan) Date: Wed, 25 Jul 2007 16:07:28 -0500 Subject: [Instantrails-users] hennegav@matc.edu Message-ID: <46A7753E.F602.000C.0@matc.edu> hennegav at matc.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20070725/0c902cee/attachment.html