Zook, Nathan
2007-Jul-05 21:14 UTC
[Instantrails-users] Instarails with existing Ruby installation
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
Curt Hibbs
2007-Jul-06 14:04 UTC
[Instantrails-users] Instarails with existing Ruby installation
On 7/5/07, Zook, Nathan <Nathan.Zook at amd.com> 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
Zook, Nathan
2007-Jul-06 17:36 UTC
[Instantrails-users] Instarails with existing Ruby installation
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 <Nathan.Zook at amd.com> 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
Bill Walton
2007-Jul-06 18:40 UTC
[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 <snip>> 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
Zook, Nathan
2007-Jul-06 19:43 UTC
[Instantrails-users] Instarails with existing Ruby installation
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 <snip>> 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
Curt Hibbs
2007-Jul-06 21:31 UTC
[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 <Nathan.Zook at amd.com> 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 <snip> > > > 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
Zook, Nathan
2007-Jul-09 13:17 UTC
[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 <Nathan.Zook at amd.com> 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 <snip>> 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
Bill Walton
2007-Jul-09 13:44 UTC
[Instantrails-users] Instarails with existing Ruby installation
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
William (Bill) Froelich
2007-Jul-09 15:04 UTC
[Instantrails-users] Instarails with existing Ruby installation
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 <Nathan.Zook at amd.com> 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 <snip> > 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