From clowder at gmail.com Tue Aug 1 05:31:20 2006 From: clowder at gmail.com (Chris Lowder) Date: Tue Aug 1 05:31:24 2006 Subject: [Locomotive-users] Creating a Bundle Message-ID: <8ac950510607312231p475867abqa274253d2f70498a@mail.gmail.com> I'm wanting to create a bundle of my own that has the latest version of rails in it, how do i accomplish this? Once (if possible) i do, does locomotive update my app automatically when i tell it to use a different bundle? Cheers, Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060801/613cbad4/attachment.htm From ryan.raaum at gmail.com Tue Aug 1 19:08:20 2006 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Tue Aug 1 19:08:26 2006 Subject: [Locomotive-users] Creating a Bundle In-Reply-To: <8ac950510607312231p475867abqa274253d2f70498a@mail.gmail.com> References: <8ac950510607312231p475867abqa274253d2f70498a@mail.gmail.com> Message-ID: Hi Chris, First, do you really need a separate bundle for Rails 1.1.4? Or can you get by with updating the 1.1.2 bundle? (gem update rails --include-dependencies) If you really need to create a separate bundle: 1. Duplicate an existing bundle. Give it a new name (which _must_ end with ".locobundle"). 2. In your cloned bundle open the "info.plist" file and modify the identifiers in there - your new bundle must have a unique identifier. Best, -r On 8/1/06, Chris Lowder wrote: > > I'm wanting to create a bundle of my own that has the latest version of > rails in it, how do i accomplish this? > > Once (if possible) i do, does locomotive update my app automatically when > i tell it to use a different bundle? > > Cheers, > Chris > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > > > -- Ryan Raaum http://www.anthro.ufl.edu - Molecular Anthropology, University of Florida http://locomotive.raaum.org -- Self contained one-click Rails for Mac OS X -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060801/9f2bd74f/attachment.htm From clowder at gmail.com Tue Aug 1 23:56:24 2006 From: clowder at gmail.com (Chris Lowder) Date: Tue Aug 1 23:56:27 2006 Subject: [Locomotive-users] Creating a Bundle In-Reply-To: References: <8ac950510607312231p475867abqa274253d2f70498a@mail.gmail.com> Message-ID: <8ac950510608011656h2c7c6cbm932db05dec5a2818@mail.gmail.com> Yeah i think i will be better off going with a whole new one (its going to be edge rails + mongrel + sqlite)... thanks for the info, if it works out is it possible to submit it to your sourceforge project so that others can d/l and use it... Cheers, Chris On 8/2/06, Ryan Raaum wrote: > > Hi Chris, > > First, do you really need a separate bundle for Rails 1.1.4? Or can you > get by with updating the 1.1.2 bundle? (gem update rails > --include-dependencies) > > If you really need to create a separate bundle: > > 1. Duplicate an existing bundle. Give it a new name (which _must_ end > with ".locobundle"). > > 2. In your cloned bundle open the "info.plist" file and modify the > identifiers in there - your new bundle must have a unique identifier. > > Best, > > -r > > On 8/1/06, Chris Lowder wrote: > > > I'm wanting to create a bundle of my own that has the latest version of > rails in it, how do i accomplish this? > > Once (if possible) i do, does locomotive update my app automatically when > i tell it to use a different bundle? > > Cheers, > Chris > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > > > > > > -- > Ryan Raaum > http://www.anthro.ufl.edu - Molecular Anthropology, University of Florida > http://locomotive.raaum.org -- Self contained one-click Rails for Mac OS X > > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060801/4978c1cc/attachment.htm From steve at talcottsystems.com Wed Aug 2 19:51:08 2006 From: steve at talcottsystems.com (Steven Talcott Smith) Date: Wed Aug 2 19:51:21 2006 Subject: [Locomotive-users] forcing environment to production? Message-ID: <6E0518C9-C7DE-41FC-9E0D-A39D77198A8F@talcottsystems.com> I have set the environment to production in Locomotive and when I start the terminal window for the application, the little indicator is showing light blue for production. However, when I run script/console, it reports that it is using the development environment. Further, rake migrate seems to be trying to access the development db. I uncommented the first setting in the config/environment.rb but it seems not to do anything for me. Any suggestions? I need to be able to migrate my production db to get my app working... Much Appreciated, Steven From steve at talcottsystems.com Wed Aug 2 20:08:27 2006 From: steve at talcottsystems.com (Steven Talcott Smith) Date: Wed Aug 2 20:08:41 2006 Subject: [Locomotive-users] forcing environment to production? In-Reply-To: <6E0518C9-C7DE-41FC-9E0D-A39D77198A8F@talcottsystems.com> References: <6E0518C9-C7DE-41FC-9E0D-A39D77198A8F@talcottsystems.com> Message-ID: <354B8603-7A35-4AF4-AE2F-78BBFB882993@talcottsystems.com> export RAILS_ENV=production is the answer. hmmm... Ryan, maybe this could be automatic when you launch a terminal from Locomotive? Thanks, Steven On Aug 2, 2006, at 3:51 PM, Steven Talcott Smith wrote: > I have set the environment to production in Locomotive and when I > start the terminal window for the application, the little indicator > is showing light blue for production. > > However, when I run script/console, it reports that it is using the > development environment. Further, rake migrate seems to be trying > to access the development db. > > I uncommented the first setting in the config/environment.rb but it > seems not to do anything for me. > > Any suggestions? I need to be able to migrate my production db to > get my app working... > > Much Appreciated, > > Steven > > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > > From ryan.raaum at gmail.com Wed Aug 2 21:31:03 2006 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Wed Aug 2 21:31:10 2006 Subject: [Locomotive-users] forcing environment to production? In-Reply-To: <354B8603-7A35-4AF4-AE2F-78BBFB882993@talcottsystems.com> References: <6E0518C9-C7DE-41FC-9E0D-A39D77198A8F@talcottsystems.com> <354B8603-7A35-4AF4-AE2F-78BBFB882993@talcottsystems.com> Message-ID: Hi, I think you want to be very careful setting RAILS_ENV in your terminal... For one thing, you might end up running your tests in your production database, which could be unpleasant... I think the best option is to use the switches for the command line tools. > ruby script/console production > ruby script/console development > ruby script/console test will load production, development, and test consoles respectively. Similarly, > rake migrate RAILS_ENV=production > rake migrate RAILS_ENV=development > rake migrate RAILS_ENV=test will do the same for your migrations. Best, -r On 8/2/06, Steven Talcott Smith wrote: > > export RAILS_ENV=production is the answer. > > hmmm... Ryan, maybe this could be automatic when you launch a > terminal from Locomotive? > > Thanks, > > Steven > > On Aug 2, 2006, at 3:51 PM, Steven Talcott Smith wrote: > > > I have set the environment to production in Locomotive and when I > > start the terminal window for the application, the little indicator > > is showing light blue for production. > > > > However, when I run script/console, it reports that it is using the > > development environment. Further, rake migrate seems to be trying > > to access the development db. > > > > I uncommented the first setting in the config/environment.rb but it > > seems not to do anything for me. > > > > Any suggestions? I need to be able to migrate my production db to > > get my app working... > > > > Much Appreciated, > > > > Steven > > > > > > _______________________________________________ > > Locomotive-users mailing list > > Locomotive-users@lists.raaum.org > > http://lists.raaum.org/mailman/listinfo/locomotive-users > > > > > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > -- Ryan Raaum http://www.anthro.ufl.edu - Molecular Anthropology, University of Florida http://locomotive.raaum.org -- Self contained one-click Rails for Mac OS X -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060802/f1560883/attachment.htm From ryan.raaum at gmail.com Wed Aug 2 21:34:59 2006 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Wed Aug 2 21:35:05 2006 Subject: [Locomotive-users] Creating a Bundle In-Reply-To: <8ac950510608011656h2c7c6cbm932db05dec5a2818@mail.gmail.com> References: <8ac950510607312231p475867abqa274253d2f70498a@mail.gmail.com> <8ac950510608011656h2c7c6cbm932db05dec5a2818@mail.gmail.com> Message-ID: On 8/1/06, Chris Lowder wrote: > > Yeah i think i will be better off going with a whole new one (its going to > be edge rails + mongrel + sqlite)... thanks for the info, if it works out is > it possible to submit it to your sourceforge project so that others can d/l > and use it... > Sure, let me know how it goes. Best, -r Cheers, > Chris > > > On 8/2/06, Ryan Raaum wrote: > > > > Hi Chris, > > > > First, do you really need a separate bundle for Rails 1.1.4? Or can you > > get by with updating the 1.1.2 bundle? (gem update rails > > --include-dependencies) > > > > If you really need to create a separate bundle: > > > > 1. Duplicate an existing bundle. Give it a new name (which _must_ end > > with ".locobundle"). > > > > 2. In your cloned bundle open the "info.plist" file and modify the > > identifiers in there - your new bundle must have a unique identifier. > > > > Best, > > > > -r > > > > On 8/1/06, Chris Lowder < clowder@gmail.com> wrote: > > > > > I'm wanting to create a bundle of my own that has the latest version > > of rails in it, how do i accomplish this? > > > > Once (if possible) i do, does locomotive update my app automatically > > when i tell it to use a different bundle? > > > > Cheers, > > Chris > > > > _______________________________________________ > > Locomotive-users mailing list > > Locomotive-users@lists.raaum.org > > http://lists.raaum.org/mailman/listinfo/locomotive-users > > > > > > > > > > > > -- > > Ryan Raaum > > http://www.anthro.ufl.edu - Molecular Anthropology, University of > > Florida > > http://locomotive.raaum.org -- Self contained one-click Rails for Mac OS > > X > > > > _______________________________________________ > > Locomotive-users mailing list > > Locomotive-users@lists.raaum.org > > http://lists.raaum.org/mailman/listinfo/locomotive-users > > > > > > > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > > > -- Ryan Raaum http://www.anthro.ufl.edu - Molecular Anthropology, University of Florida http://locomotive.raaum.org -- Self contained one-click Rails for Mac OS X -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060802/9a9556f9/attachment.htm From unolee at gmail.com Thu Aug 3 15:08:33 2006 From: unolee at gmail.com (uno) Date: Thu Aug 3 15:21:15 2006 Subject: [Locomotive-users] Access by DNS, noy localhost Message-ID: I installed Locomotive and some samples are working well at localhost. But if I try to access by test.domainname.com (for example) it can't access. How to enable this? I'm using this for development with my team, so 2~3 connections will be OK. Thanks in advance. From unolee at gmail.com Thu Aug 3 15:28:54 2006 From: unolee at gmail.com (uno) Date: Thu Aug 3 15:29:33 2006 Subject: [Locomotive-users] Re: Access by DNS, not localhost References: Message-ID: uno writes: > > I installed Locomotive and some samples are working well at localhost. > > But if I try to access by test.domainname.com (for example) it can't access. > How to enable this? > > I'm using this for development with my team, so 2~3 connections will be OK. > > Thanks in advance. > My Mac has a fixed IP, so it's OK to access default web server by DNS. So, I guess, there are some configs because Locomotive are for quick development. ^^ From ryan.raaum at gmail.com Thu Aug 3 18:38:38 2006 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Thu Aug 3 18:38:48 2006 Subject: [Locomotive-users] Re: Access by DNS, not localhost In-Reply-To: References: Message-ID: On 8/3/06, uno wrote: > > uno writes: > > > > > I installed Locomotive and some samples are working well at localhost. > > > > But if I try to access by test.domainname.com (for example) it can't > access. > > How to enable this? > > > > I'm using this for development with my team, so 2~3 connections will be > OK. > > > > Thanks in advance. > > > > My Mac has a fixed IP, so it's OK to access default web server by DNS. > So, I guess, there are some configs because Locomotive are for quick > development. If you are serving your app on (say) port 3000 and your computer is test.domainname.com, then you should be able to see your site at http://test.domainname.com:3000 If you can't, you should probably first check your firewall and make sure requests to port 3000 can get through it. Best, -r ^^ > > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > -- Ryan Raaum http://www.anthro.ufl.edu - Molecular Anthropology, University of Florida http://locomotive.raaum.org -- Self contained one-click Rails for Mac OS X -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060803/b9e5dca6/attachment.htm From steve at talcottsystems.com Fri Aug 4 13:00:03 2006 From: steve at talcottsystems.com (Steven Talcott Smith) Date: Fri Aug 4 13:00:21 2006 Subject: [Locomotive-users] strange behavior in production Message-ID: <3A7F2B8E-2CA3-49A3-8B98-1300F227A3B9@talcottsystems.com> I recently try to deploy on a G4 in production mode. The site works, but when I perform a certain query, the system hangs and I have to stop and restart the server process. Ruby ends up spinning and taking up all the CPU. I tried an identical configuration on a Core Duo (same I as I use in development) and it works flawlessly. They are using the same version of MySQL. Same everything except the architecture of the CPU as far as I can tell. I have run the identical queries that it should run and these execute just fine. Eventually I would like to upgrade my server to a Core Duo but it will take a couple days to configure and send off to colo. Anyway, I am a little disturbed that I could not get it to run on my existing setup. An ideas on where to look? Steven From raffir at gmail.com Mon Aug 7 21:22:54 2006 From: raffir at gmail.com (Raffi R) Date: Mon Aug 7 21:22:59 2006 Subject: [Locomotive-users] Locomotive's just given up the ghost! (for one project) Message-ID: I've been working on a project for a while. Today, I went to execute a script/destroy command and was greeted with the following jumble: raphael-rushs-ibook-g4:~/rezgroups5 rrush$ script/destroy model weblog /Applications/Locomotive2/Bundles/rails112rmagick_ppc.locobundle/framework/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__': ./script/../config/../config/environment.rb:61: Invalid char `\342' in expression (SyntaxError) ./script/../config/../config/environment.rb:61: Invalid char `\200' in expression ./script/../config/../config/environment.rb:61: Invalid char `\230' in expression ./script/../config/../config/environment.rb:61: Invalid char `\342' in expression ./script/../config/../config/environment.rb:61: Invalid char `\200' in expression ./script/../config/../config/environment.rb:61: Invalid char `\231' in expression from /Applications/Locomotive2/Bundles/rails112rmagick_ppc.locobundle/framework/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require' from /Applications/Locomotive2/Bundles/rails112rmagick_ppc.locobundle/framework/lib/ruby/gems/1.8/gems/activesupport- 1.3.1/lib/active_support/dependencies.rb:147:in `require' from /Applications/Locomotive2/Bundles/rails112rmagick_ppc.locobundle/framework/lib/ruby/gems/1.8/gems/rails- 1.1.2/lib/commands/destroy.rb:1 from /Applications/Locomotive2/Bundles/rails112rmagick_ppc.locobundle/framework/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require' from /Applications/Locomotive2/Bundles/rails112rmagick_ppc.locobundle/framework/lib/ruby/gems/1.8/gems/activesupport- 1.3.1/lib/active_support/dependencies.rb:147:in `require' from script/destroy:3 I seem to get a similar jumble no matter what command I execute. On top of that, Locomotive will no longer host the site! If I click Run, it will appear to be running for a moment, but will then stop. If I click on anything else (i.e. another project) the light that indicates running in Locomotive will not do so. It goes without saying that it will certainly not access the site itself. This is obviously very disturbing. Thoughts? - Raffi. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060807/41e9055d/attachment.htm From raffir at gmail.com Mon Aug 7 21:27:33 2006 From: raffir at gmail.com (Raffi R) Date: Mon Aug 7 21:27:37 2006 Subject: [Locomotive-users] Problem solved! Message-ID: I reread the errors from my previous post; all pointed to a line I had copied and pasted from somewhere else. Deleting the line (with, presumably some garbage characters or something) set everything right again. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060807/a2931d97/attachment.htm From ben.sharpe at biego.com Tue Aug 8 23:25:56 2006 From: ben.sharpe at biego.com (Ben Sharpe) Date: Tue Aug 8 23:26:13 2006 Subject: [Locomotive-users] gem update -- how do you do it? Message-ID: So what's the secret to being able to do a 'gem update' to get the latest Rails, RMagick and fcgi? The configure script cannot find libMagick is what the error says. Ben Sharpe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060808/bdcda937/attachment.htm From steve at talcottsystems.com Thu Aug 10 09:15:01 2006 From: steve at talcottsystems.com (Steven Talcott Smith) Date: Thu Aug 10 09:15:15 2006 Subject: [Locomotive-users] Obtaining the Rails 1.1.5 Mandatory Security Patch? Message-ID: <1A38A19F-965B-4542-9FCF-764F71048E70@talcottsystems.com> What is the procedure for doing this under Locomotive? According to this: http://weblog.rubyonrails.com/2006/8/9/rails-1-1-5-mandatory-security- patch-and-other-tidbits > As always, the trick is to do ?gem install rails? and then either > changing config/environment.rb, if you?re bound to gems, or do > ?rake rails:freeze:gems? if you?re freezing gems in vendor. I cannot afford to break my dev or test environment right now but I would like to get this going before I go live... Steven -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060810/50d4e093/attachment.htm From ryan.raaum at gmail.com Thu Aug 10 15:17:45 2006 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Thu Aug 10 15:17:51 2006 Subject: [Locomotive-users] gem update -- how do you do it? In-Reply-To: References: Message-ID: On 8/8/06, Ben Sharpe wrote: > > So what's the secret to being able to do a 'gem update' to get the latest > Rails, RMagick and fcgi? The configure script cannot find libMagick is what > the error says. > Unless you _need_ to update RMagick, I would just update the other items individually. gem update rails --include-dependencies Ben Sharpe > > > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > > > -- Ryan Raaum http://www.anthro.ufl.edu - Molecular Anthropology, University of Florida http://locomotive.raaum.org -- Self contained one-click Rails for Mac OS X -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060810/2ce080bc/attachment.htm From ryan.raaum at gmail.com Thu Aug 10 15:46:57 2006 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Thu Aug 10 15:47:01 2006 Subject: [Locomotive-users] Rails 1.1.5 Security Release Message-ID: Hi All, In theory, assuming you are using Locomotive as a development tool, none of you are affected by this security hole, and no one really needs to worry about it. However, if you want to stay with the times or are using Locomotive to serve a production site, you may update rails as usual gem update rails --include-dependencies and ensure that either you have commented out the RAILS_GEM_VERSION variable in config/environment.rb or (if you have not or do not want to comment it out, change the value to 1.1.5). Best, -r -- Ryan Raaum http://www.anthro.ufl.edu - Molecular Anthropology, University of Florida http://locomotive.raaum.org -- Self contained one-click Rails for Mac OS X -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060810/63c6c2b5/attachment.htm From ryansobol.public at gmail.com Wed Aug 16 21:12:58 2006 From: ryansobol.public at gmail.com (Ryan Sobol) Date: Wed Aug 16 21:30:24 2006 Subject: [Locomotive-users] RE: Rails 1.1.5 Security Release Message-ID: I think this situation highlights the need for the Locomotive user to be able to choose from the various versions of rails within Locomotive's gem. Ryan, if you're willing to pass the ownership of updating gem packages to us, we should expect Locomotive to be smart enough to recognize that rails evolves. That being said, I've always felt this feature to be the missing ingredient to an already fantastic piece of software. ~ ryan ~ From alain.ravet at gmail.com Thu Aug 17 08:13:12 2006 From: alain.ravet at gmail.com (Alain Ravet) Date: Thu Aug 17 08:13:17 2006 Subject: [Locomotive-users] RE: Rails 1.1.5 Security Release In-Reply-To: References: Message-ID: Ryan, 1/ > I think this situation highlights the need for the Locomotive user to be able to > choose from the various versions of rails within Locomotive's gem. Ryan, if My take is different : this is one more reason, independent of Locomotive, to ALWAYS freeze the Rails gem in the vendor directory. I see the installed Rails gem as a bootstraper, and nothing more. I sleep better that way. 2/ But I also wish there was an easier way/tool to create new/duplicate bundles, and edit their contents. Why: a bundle should mimic the configuration of the target server => I use 1 bundle per (deployed commercial) app. Alain From j-rails at mboro.org Thu Aug 17 12:09:57 2006 From: j-rails at mboro.org (James A Baker) Date: Thu Aug 17 14:40:18 2006 Subject: [Locomotive-users] Documentation-enabled Bundle? Message-ID: I'm new to Ruby and Rails (and Locomotive too obviously) and apologize if I've missed something "obvious" to everyone here. I did do a quick search of this list archive and on Google and didn't see anything particularly relevant to my question. Has anyone considered making a bundle (or possibly an importable Locomotive app to download) which has all the Rails documentation generated and included? In a perfect world, there would also be a Cmd-D action in Locomotive which would launch the appropriate gem_server (or other solution??) and open the proper documentation URL in your browser. Personally, I'm just getting started with Rails, and have no idea what I'm doing. As an added problem, I have had to revert to dial-up at my new home-office (out in the country, out of range for DSL and cable sadly). So I can't just use the online documentation, as I would be doing had I started learning Rails 6-8 months ago. For me, not having Rails' documentation available offline is a real headache. Of course, there's almost certainly another solution available (which I'll likely find and use in the meantime -- such as wget from api.rubyonrails.org maybe)... but since Locomotive aims to "simplify" Rails on OS X, including a documentation option would be a VERY welcome move toward that goal. Thanks! -James P.S. Please reply to my email address too, if you could, even if that's not typical behavior with this group. Thanks a lot! From mark.m.fredrickson at gmail.com Thu Aug 17 14:50:29 2006 From: mark.m.fredrickson at gmail.com (Mark Fredrickson) Date: Thu Aug 17 14:50:34 2006 Subject: [Locomotive-users] Documentation-enabled Bundle? In-Reply-To: References: Message-ID: <3db8a8970608170750h4745bcf9o21d05644e1940a2d@mail.gmail.com> Hi James, I think this is a great idea. I'm in the process of learning the ins and outs of Locomotive (and dusting off my Obj-c skills), and this idea has been on my hitlist for a while. Would you like to coordinate adding this to Loco? You can email me off list if you have the time and interest. You seem to know more about how to generate rails docs than I do, and I can help with adding the code to Loco. Do you think this is something we can do without having to create new bundles? Cheers, -Mark On 8/17/06, James A Baker wrote: > I'm new to Ruby and Rails (and Locomotive too obviously) and apologize if I've > missed something "obvious" to everyone here. I did do a quick search of this > list archive and on Google and didn't see anything particularly relevant to my > question. > > Has anyone considered making a bundle (or possibly an importable Locomotive > app to download) which has all the Rails documentation generated and included? > In a perfect world, there would also be a Cmd-D action in Locomotive which > would launch the appropriate gem_server (or other solution??) and open the > proper documentation URL in your browser. > > Personally, I'm just getting started with Rails, and have no idea what I'm > doing. As an added problem, I have had to revert to dial-up at my new > home-office (out in the country, out of range for DSL and cable sadly). So I > can't just use the online documentation, as I would be doing had I started > learning Rails 6-8 months ago. For me, not having Rails' documentation > available offline is a real headache. > > Of course, there's almost certainly another solution available (which I'll > likely find and use in the meantime -- such as wget from api.rubyonrails.org > maybe)... but since Locomotive aims to "simplify" Rails on OS X, including a > documentation option would be a VERY welcome move toward that goal. > > Thanks! > > -James > > > P.S. Please reply to my email address too, if you could, even if that's not > typical behavior with this group. Thanks a lot! > > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > From steve at talcottsystems.com Thu Aug 17 14:52:35 2006 From: steve at talcottsystems.com (Steven Talcott Smith) Date: Thu Aug 17 14:52:53 2006 Subject: [Locomotive-users] Documentation-enabled Bundle? In-Reply-To: <3db8a8970608170750h4745bcf9o21d05644e1940a2d@mail.gmail.com> References: <3db8a8970608170750h4745bcf9o21d05644e1940a2d@mail.gmail.com> Message-ID: <375413D2-4F61-4EAA-A16C-8D22D3F1B85B@talcottsystems.com> I have generated the rails docs locally but the format is terrible. It is nowhere near as useful as the framed online version. Does anyone know how to do that? Steven On Aug 17, 2006, at 10:50 AM, Mark Fredrickson wrote: > Hi James, > > I think this is a great idea. I'm in the process of learning the ins > and outs of Locomotive (and dusting off my Obj-c skills), and this > idea has been on my hitlist for a while. > > Would you like to coordinate adding this to Loco? You can email me off > list if you have the time and interest. You seem to know more about > how to generate rails docs than I do, and I can help with adding the > code to Loco. Do you think this is something we can do without having > to create new bundles? > > Cheers, > -Mark > > > On 8/17/06, James A Baker wrote: >> I'm new to Ruby and Rails (and Locomotive too obviously) and >> apologize if I've >> missed something "obvious" to everyone here. I did do a quick >> search of this >> list archive and on Google and didn't see anything particularly >> relevant to my >> question. >> >> Has anyone considered making a bundle (or possibly an importable >> Locomotive >> app to download) which has all the Rails documentation generated >> and included? >> In a perfect world, there would also be a Cmd-D action in >> Locomotive which >> would launch the appropriate gem_server (or other solution??) and >> open the >> proper documentation URL in your browser. >> >> Personally, I'm just getting started with Rails, and have no idea >> what I'm >> doing. As an added problem, I have had to revert to dial-up at my new >> home-office (out in the country, out of range for DSL and cable >> sadly). So I >> can't just use the online documentation, as I would be doing had I >> started >> learning Rails 6-8 months ago. For me, not having Rails' >> documentation >> available offline is a real headache. >> >> Of course, there's almost certainly another solution available >> (which I'll >> likely find and use in the meantime -- such as wget from >> api.rubyonrails.org >> maybe)... but since Locomotive aims to "simplify" Rails on OS X, >> including a >> documentation option would be a VERY welcome move toward that goal. >> >> Thanks! >> >> -James >> >> >> P.S. Please reply to my email address too, if you could, even if >> that's not >> typical behavior with this group. Thanks a lot! >> >> >> _______________________________________________ >> Locomotive-users mailing list >> Locomotive-users@lists.raaum.org >> http://lists.raaum.org/mailman/listinfo/locomotive-users >> > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > > From ecentinela at gmail.com Thu Aug 17 17:46:30 2006 From: ecentinela at gmail.com (Javier Martinez) Date: Thu Aug 17 17:46:41 2006 Subject: [Locomotive-users] rails update Message-ID: Somebody can write a few lines explaining how to update the rails version on locomotive 2.0.7 for a very very very mac newbie? :P Thanks. From conrodi at vt.edu Thu Aug 17 18:19:40 2006 From: conrodi at vt.edu (Con Rodi) Date: Thu Aug 17 18:19:50 2006 Subject: [Locomotive-users] rails update In-Reply-To: References: Message-ID: <5AA43B0A-C6A0-4406-879B-B52BC5F71F96@vt.edu> For at least two of us... On Aug 17, 2006, at 1:46 PM, Javier Martinez wrote: > Somebody can write a few lines explaining how to update the rails > version on locomotive 2.0.7 for a very very very mac newbie? :P > > Thanks. > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users From ray at warmroom.com Thu Aug 17 18:38:06 2006 From: ray at warmroom.com (Ray Baxter) Date: Thu Aug 17 18:38:13 2006 Subject: [Locomotive-users] rails update In-Reply-To: <5AA43B0A-C6A0-4406-879B-B52BC5F71F96@vt.edu> References: <5AA43B0A-C6A0-4406-879B-B52BC5F71F96@vt.edu> Message-ID: <44E4B78E.4070402@warmroom.com> Con Rodi wrote: > For at least two of us... > > On Aug 17, 2006, at 1:46 PM, Javier Martinez wrote: > >> Somebody can write a few lines explaining how to update the rails >> version on locomotive 2.0.7 for a very very very mac newbie? :P Here's what I just did. 1) Open Locomotive 2) Apple-T to open a terminal 3) Type gem update rails -y 4) Restart locomotive. I'm not certain step 4 is required, but I don't have a convenient way to test this so go for it. Ray From ryan.raaum at gmail.com Thu Aug 17 18:42:45 2006 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Thu Aug 17 18:42:51 2006 Subject: [Locomotive-users] rails update In-Reply-To: <44E4B78E.4070402@warmroom.com> References: <5AA43B0A-C6A0-4406-879B-B52BC5F71F96@vt.edu> <44E4B78E.4070402@warmroom.com> Message-ID: On 8/17/06, Ray Baxter wrote: > > Con Rodi wrote: > > For at least two of us... > > > > On Aug 17, 2006, at 1:46 PM, Javier Martinez wrote: > > > >> Somebody can write a few lines explaining how to update the rails > >> version on locomotive 2.0.7 for a very very very mac newbie? :P > > Here's what I just did. > > 1) Open Locomotive > 2) Apple-T to open a terminal > 3) Type gem update rails -y > 4) Restart locomotive. > > I'm not certain step 4 is required, but I don't have a convenient way to > test this so go for it. 3) "gem update rails --include-dependencies" works equally well 4) not necessary -r Ray > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > -- Ryan Raaum http://www.anthro.ufl.edu - Molecular Anthropology, University of Florida http://locomotive.raaum.org -- Self contained one-click Rails for Mac OS X -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060817/44e2b2f0/attachment.htm From ecentinela at gmail.com Thu Aug 17 18:47:15 2006 From: ecentinela at gmail.com (Javier Martinez) Date: Thu Aug 17 18:47:25 2006 Subject: [Locomotive-users] rails update In-Reply-To: <44E4B78E.4070402@warmroom.com> References: <5AA43B0A-C6A0-4406-879B-B52BC5F71F96@vt.edu> <44E4B78E.4070402@warmroom.com> Message-ID: <260836C4-38A0-4DDC-8911-0843B21F2805@gmail.com> I made what you say and terminal says that I have rails 1.1.6, but I see on "Framework info" that I'm on 1.1.2 and there isn't another version. Is that normal? Thanks El 17/08/2006, a las 20:38, Ray Baxter escribi?: > Con Rodi wrote: >> For at least two of us... >> >> On Aug 17, 2006, at 1:46 PM, Javier Martinez wrote: >> >>> Somebody can write a few lines explaining how to update the rails >>> version on locomotive 2.0.7 for a very very very mac newbie? :P > > Here's what I just did. > > 1) Open Locomotive > 2) Apple-T to open a terminal > 3) Type gem update rails -y > 4) Restart locomotive. > > I'm not certain step 4 is required, but I don't have a convenient > way to test this so go for it. > > Ray > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users From ryan.raaum at gmail.com Thu Aug 17 19:19:32 2006 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Thu Aug 17 19:19:38 2006 Subject: [Locomotive-users] rails update In-Reply-To: <260836C4-38A0-4DDC-8911-0843B21F2805@gmail.com> References: <5AA43B0A-C6A0-4406-879B-B52BC5F71F96@vt.edu> <44E4B78E.4070402@warmroom.com> <260836C4-38A0-4DDC-8911-0843B21F2805@gmail.com> Message-ID: On 8/17/06, Javier Martinez wrote: > > I made what you say and terminal says that I have rails 1.1.6, but I > see on "Framework info" that I'm on 1.1.2 and there isn't another > version. > Is that normal? Yes. Violating DRY, the value you see in the "Framework Info" window is not actually pulled from the rails gem version, but is a separate value in the Bundle's info.plist file. Obviously, this should really be more dynamically determined :) If you want to definitively find out what rails version you're running, open a terminal from Locomotive and run "rails -v" at the prompt OR the rails info that you can see on the default starter rails page is always available at: http://localhost:3000/rails/info/properties (replace 3000 with the right port for your app) Also, by default, the rails generator sets RAILS_GEM_VERSION in your config/environment.rb file to be whatever version of rails it was run under. If this is set in your config, this is the version of rails your app will be using, even if a newer version is installed! -r Thanks > > El 17/08/2006, a las 20:38, Ray Baxter escribi?: > > > Con Rodi wrote: > >> For at least two of us... > >> > >> On Aug 17, 2006, at 1:46 PM, Javier Martinez wrote: > >> > >>> Somebody can write a few lines explaining how to update the rails > >>> version on locomotive 2.0.7 for a very very very mac newbie? :P > > > > Here's what I just did. > > > > 1) Open Locomotive > > 2) Apple-T to open a terminal > > 3) Type gem update rails -y > > 4) Restart locomotive. > > > > I'm not certain step 4 is required, but I don't have a convenient > > way to test this so go for it. > > > > Ray > > _______________________________________________ > > Locomotive-users mailing list > > Locomotive-users@lists.raaum.org > > http://lists.raaum.org/mailman/listinfo/locomotive-users > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > -- Ryan Raaum http://www.anthro.ufl.edu - Molecular Anthropology, University of Florida http://locomotive.raaum.org -- Self contained one-click Rails for Mac OS X -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060817/5f20c9e0/attachment.htm From ryan.raaum at gmail.com Thu Aug 17 19:36:50 2006 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Thu Aug 17 19:36:55 2006 Subject: [Locomotive-users] Documentation-enabled Bundle? In-Reply-To: <3db8a8970608170750h4745bcf9o21d05644e1940a2d@mail.gmail.com> References: <3db8a8970608170750h4745bcf9o21d05644e1940a2d@mail.gmail.com> Message-ID: > On 8/17/06, James A Baker wrote: > > I'm new to Ruby and Rails (and Locomotive too obviously) and apologize > if I've > > missed something "obvious" to everyone here. I did do a quick search of > this > > list archive and on Google and didn't see anything particularly relevant > to my > > question. > > > > Has anyone considered making a bundle (or possibly an importable > Locomotive > > app to download) which has all the Rails documentation generated and > included? > > In a perfect world, there would also be a Cmd-D action in Locomotive > which > > would launch the appropriate gem_server (or other solution??) and open > the > > proper documentation URL in your browser. > > > > Personally, I'm just getting started with Rails, and have no idea what > I'm > > doing. As an added problem, I have had to revert to dial-up at my new > > home-office (out in the country, out of range for DSL and cable sadly). > So I > > can't just use the online documentation, as I would be doing had I > started > > learning Rails 6-8 months ago. For me, not having Rails' documentation > > available offline is a real headache. > > > > Of course, there's almost certainly another solution available (which > I'll > > likely find and use in the meantime -- such as wget from > api.rubyonrails.org > > maybe)... but since Locomotive aims to "simplify" Rails on OS X, > including a > > documentation option would be a VERY welcome move toward that goal. > > > > Thanks! > > > > -James > > > > > > P.S. Please reply to my email address too, if you could, even if that's > not > > typical behavior with this group. Thanks a lot! > > > > On 8/17/06, Mark Fredrickson wrote:Hi James, I think this is a great idea. I'm in the process of learning the ins and outs of Locomotive (and dusting off my Obj-c skills), and this idea has been on my hitlist for a while. Would you like to coordinate adding this to Loco? You can email me off list if you have the time and interest. You seem to know more about how to generate rails docs than I do, and I can help with adding the code to Loco. Do you think this is something we can do without having to create new bundles? Cheers, -Mark Hi all, Without discouraging anyone from adding rails documentation to Locomotive, I'm going to throw out there that rails documentation is a more widespread issue and that any local version that could be independent of Locomotive in particular, and perhaps even Mac OS X in general, would perhaps be very welcome... (Incidentally, the most recent Locomotive bundles were initially planned to include all the docs, but in the midst of various bug fixes and updates, the docs got misplaced...) Best, -r -- Ryan Raaum http://www.anthro.ufl.edu - Molecular Anthropology, University of Florida http://locomotive.raaum.org -- Self contained one-click Rails for Mac OS X -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060817/5add56cc/attachment.htm From ryan.raaum at gmail.com Thu Aug 17 19:40:38 2006 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Thu Aug 17 19:40:45 2006 Subject: [Locomotive-users] RE: Rails 1.1.5 Security Release In-Reply-To: References: Message-ID: On 8/16/06, Ryan Sobol wrote: > > I think this situation highlights the need for the Locomotive user to be > able to > choose from the various versions of rails within Locomotive's gem. In theory, this is why the rails core team introduced the RAILS_GEM_VERSION setting in config/environment.rb - of course, this could be a part of the "info" window for an app in Locomotive. Ryan, if > you're willing to pass the ownership of updating gem packages to us, we > should > expect Locomotive to be smart enough to recognize that rails evolves. I'm more than happy to look at bundle patches. Also, there's nothing magical about the bundles I'm distributing - if anyone wants to distribute alternate bundles, contact me and I will give you all the information you need. Best, -r That > being said, I've always felt this feature to be the missing ingredient to > an > already fantastic piece of software. > > ~ ryan ~ > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > -- Ryan Raaum http://www.anthro.ufl.edu - Molecular Anthropology, University of Florida http://locomotive.raaum.org -- Self contained one-click Rails for Mac OS X -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060817/a0b62304/attachment.htm From ryan.raaum at gmail.com Thu Aug 17 19:41:15 2006 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Thu Aug 17 19:41:19 2006 Subject: [Locomotive-users] RE: Rails 1.1.5 Security Release In-Reply-To: References: Message-ID: On 8/17/06, Alain Ravet wrote: > > Ryan, > > > 1/ > > I think this situation highlights the need for the Locomotive > user to be able to > > choose from the various versions of rails within Locomotive's > gem. Ryan, if > > My take is different : this is one more reason, independent of > Locomotive, to ALWAYS freeze the Rails gem in the vendor directory. > I see the installed Rails gem as a bootstraper, and nothing more. I > sleep better that way. > > 2/ > But I also wish there was an easier way/tool to create new/duplicate > bundles, and edit their contents. A bundle "cloner" is a good idea. Why: a bundle should mimic the configuration of the target server => I > use 1 bundle per (deployed commercial) app. > > Alain > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > -- Ryan Raaum http://www.anthro.ufl.edu - Molecular Anthropology, University of Florida http://locomotive.raaum.org -- Self contained one-click Rails for Mac OS X -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060817/9f6f0cda/attachment.htm From conrodi at vt.edu Thu Aug 17 23:59:51 2006 From: conrodi at vt.edu (Con Rodi) Date: Thu Aug 17 23:59:59 2006 Subject: [Locomotive-users] rails update In-Reply-To: References: <5AA43B0A-C6A0-4406-879B-B52BC5F71F96@vt.edu> <44E4B78E.4070402@warmroom.com> <260836C4-38A0-4DDC-8911-0843B21F2805@gmail.com> Message-ID: After proceeding with these steps: 1) Open Locomotive 2) Apple-T to open a terminal 3) Type gem update rails --include-dependencies 4) Restart locomotive. rails -v reports version 1.1.6 Using the web interface below, reports 1.1.2 and the older Action Pack etc. RAILS_GEM_VERSION is also 1.1.2, contrary to the below expectation. I tried changing this manually, but no effect. So what version is actually serving my pages? cmr On Aug 17, 2006, at 3:19 PM, Ryan Raaum wrote: > If you want to definitively find out what rails version you're > running, open a terminal from Locomotive and run "rails -v" at the > prompt OR the rails info that you can see on the default starter > rails page is always available at: > > http://localhost:3000/rails/info/properties (replace 3000 with the > right port for your app) > > Also, by default, the rails generator sets RAILS_GEM_VERSION in > your config/environment.rb file to be whatever version of rails it > was run under. If this is set in your config, this is the version > of rails your app will be using, even if a newer version is installed! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060817/bc273149/attachment-0001.htm From ryan.raaum at gmail.com Fri Aug 18 01:54:55 2006 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Fri Aug 18 01:55:01 2006 Subject: [Locomotive-users] rails update In-Reply-To: References: <5AA43B0A-C6A0-4406-879B-B52BC5F71F96@vt.edu> <44E4B78E.4070402@warmroom.com> <260836C4-38A0-4DDC-8911-0843B21F2805@gmail.com> Message-ID: Hi, On 8/17/06, Con Rodi wrote: > > After proceeding with these steps: > > 1) Open Locomotive > 2) Apple-T to open a terminal > 3) Type gem update rails --include-dependencies > 4) Restart locomotive. > > rails -v reports version 1.1.6 > > Using the web interface below, reports 1.1.2 and the older Action Pack > etc. > > RAILS_GEM_VERSION is also 1.1.2, contrary to the below expectation. I > tried changing this manually, but no effect. > Did you restart the app? Did you update rails in the same bundle that your app is using? The rails generator (i.e. the command that creates your rails app in the first place - "rails myapp" - sets the RAILS_GEM_VERSION variable), updating rails via gems has no impact on this setting. You have to change it yourself. Or, if you comment it out, your app will follow whatever is the most recent version installed. So what version is actually serving my pages? > Whatever you see on the /rails/info/properties page is the definitive answer. Best, -r cmr > > On Aug 17, 2006, at 3:19 PM, Ryan Raaum wrote: > > If you want to definitively find out what rails version you're running, > open a terminal from Locomotive and run "rails -v" at the prompt OR the > rails info that you can see on the default starter rails page is always > available at: > > http://localhost:3000/rails/info/properties (replace 3000 with the right > port for your app) > > Also, by default, the rails generator sets RAILS_GEM_VERSION in your > config/environment.rb file to be whatever version of rails it was run > under. If this is set in your config, this is the version of rails your app > will be using, even if a newer version is installed! > > > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > > > -- Ryan Raaum http://www.anthro.ufl.edu - Molecular Anthropology, University of Florida http://locomotive.raaum.org -- Self contained one-click Rails for Mac OS X -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060818/91d6d017/attachment.htm From conrodi at vt.edu Fri Aug 18 03:35:15 2006 From: conrodi at vt.edu (Con Rodi) Date: Fri Aug 18 03:35:22 2006 Subject: [Locomotive-users] rails update In-Reply-To: References: <5AA43B0A-C6A0-4406-879B-B52BC5F71F96@vt.edu> <44E4B78E.4070402@warmroom.com> <260836C4-38A0-4DDC-8911-0843B21F2805@gmail.com> Message-ID: <3945FE07-7EC8-451B-99F4-5E7C77EA4562@vt.edu> On Aug 17, 2006, at 9:54 PM, Ryan Raaum wrote: > Did you restart the app? Did you update rails in the same bundle > that your app is using? Yes, Yes. > > The rails generator (i.e. the command that creates your rails app > in the first place - "rails myapp" - sets the RAILS_GEM_VERSION > variable), updating rails via gems has no impact on this setting. > You have to change it yourself. Or, if you comment it out, your > app will follow whatever is the most recent version installed. > I may not have done this in the right order. I probably restarted the app and then commented out the config line => no effect. Now I commented out the config line and THEN restarted the app and it shows up as 1.1.6 as expected. Thanks for the clarification. cmr -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060818/77f4517f/attachment.htm From ecentinela at gmail.com Sun Aug 20 12:10:56 2006 From: ecentinela at gmail.com (Javier Martinez) Date: Sun Aug 20 12:11:05 2006 Subject: [Locomotive-users] locomotive and MAMP Message-ID: I'm trying to use mysql from MAMP into locomotive, but I can't connect with the server with rails. I added the "Additional Path" => "/Applications/MAMP/Library/bin" to Locomotive and change the socket to "/Applications/MAMP/tmp/mysql/ mysql.sock" on database.yml. If I make an scaffold for one tabble ( tags ), the command makes the files correctly, but if I want to go to the page, I get this error uninitialized constant Tag RAILS_ROOT: /Users/ecentinela/rails/opino/public/../config/.. Application Trace | Framework Trace | Full Trace /Applications/Locomotive2/Bundles/rails112.locobundle/i386/lib/ruby/ gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb: 123:in `const_missing' /Applications/Locomotive2/Bundles/rails112.locobundle/i386/lib/ruby/ gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb: 131:in `const_missing' /Applications/Locomotive2/Bundles/rails112.locobundle/i386/lib/ruby/ gems/1.8/gems/activesupport-1.3.1/lib/active_support/inflector.rb: 161:in `constantize' /Applications/Locomotive2/Bundles/rails112.locobundle/i386/lib/ruby/ gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/string/ inflections.rb:59:in `constantize' /Applications/Locomotive2/Bundles/rails112.locobundle/i386/lib/ruby/ gems/1.8/gems/actionpack-1.12.5/lib/action_controller/pagination.rb: 194:in `paginator_and_collection_for' /Applications/Locomotive2/Bundles/rails112.locobundle/i386/lib/ruby/ gems/1.8/gems/actionpack-1.12.5/lib/action_controller/pagination.rb: 129:in `paginate' #{RAILS_ROOT}/app/controllers/tags_controller.rb:12:in `list' #{RAILS_ROOT}/app/controllers/tags_controller.rb:3:in `index' This error occured while loading the following files: tag.rb Somebody can help me? PD: I did a rails update to 1.1.6 ( on welcome page, it says that ) but in these lines you can view something about rails112 ????? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060820/dd866ed1/attachment.htm From rafeco at gmail.com Sun Aug 20 16:13:23 2006 From: rafeco at gmail.com (Rafe Colburn) Date: Sun Aug 20 16:13:29 2006 Subject: [Locomotive-users] locomotive and MAMP In-Reply-To: References: Message-ID: Leaving everything set as the defaults, all I had to do to get Locomotive to use MAMP's version of MySQL was set up database.yml properly. Here's the settings I use: development: adapter: mysql database: pubsite_development username: pubsite password: pubsite host: 127.0.0.1 port: 8889 On 8/20/06, Javier Martinez wrote: > > I'm trying to use mysql from MAMP into locomotive, but I can't connect with > the server with rails. From ecentinela at gmail.com Sun Aug 20 16:24:47 2006 From: ecentinela at gmail.com (Javier Martinez) Date: Sun Aug 20 16:24:58 2006 Subject: [Locomotive-users] locomotive and MAMP In-Reply-To: References: Message-ID: <835F56E5-1614-4088-A17A-FDDDBA2237C4@gmail.com> Well, I have connected correctly, and I made a scaffold from a table "users" correctly. But If I go to the page, I get this error ------------------------------------------------------------------------ ------------------------------------------------------------------------ ------------------------------------ NameError in UsersController#index uninitialized constant User RAILS_ROOT: /Users/ecentinela/prueba/public/../config/.. Application Trace | Framework Trace | Full Trace /Applications/Locomotive2/Bundles/rails112.locobundle/i386/lib/ruby/ gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb: 123:in `const_missing' /Applications/Locomotive2/Bundles/rails112.locobundle/i386/lib/ruby/ gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb: 131:in `const_missing' /Applications/Locomotive2/Bundles/rails112.locobundle/i386/lib/ruby/ gems/1.8/gems/activesupport-1.3.1/lib/active_support/inflector.rb: 161:in `constantize' /Applications/Locomotive2/Bundles/rails112.locobundle/i386/lib/ruby/ gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/string/ inflections.rb:59:in `constantize' /Applications/Locomotive2/Bundles/rails112.locobundle/i386/lib/ruby/ gems/1.8/gems/actionpack-1.12.1/lib/action_controller/pagination.rb: 194:in `paginator_and_collection_for' /Applications/Locomotive2/Bundles/rails112.locobundle/i386/lib/ruby/ gems/1.8/gems/actionpack-1.12.1/lib/action_controller/pagination.rb: 129:in `paginate' #{RAILS_ROOT}/app/controllers/users_controller.rb:12:in `list' #{RAILS_ROOT}/app/controllers/users_controller.rb:3:in `index' This error occured while loading the following files: user.rb Request Parameters: None Show session dump Response Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} ------------------------------------------------------------------------ ------------------------------------------------------------------------ ------------------------------------ What is this? El 20/08/2006, a las 18:13, Rafe Colburn escribi?: > Leaving everything set as the defaults, all I had to do to get > Locomotive to use MAMP's version of MySQL was set up database.yml > properly. Here's the settings I use: > > development: > adapter: mysql > database: pubsite_development > username: pubsite > password: pubsite > host: 127.0.0.1 > port: 8889 > > On 8/20/06, Javier Martinez wrote: >> >> I'm trying to use mysql from MAMP into locomotive, but I can't >> connect with >> the server with rails. > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060820/4b6f842d/attachment-0001.htm From steve at talcottsystems.com Tue Aug 22 15:01:43 2006 From: steve at talcottsystems.com (Steven Talcott Smith) Date: Tue Aug 22 15:03:27 2006 Subject: [Locomotive-users] Locomotive (Not Responding) Message-ID: Something is wrong with my Locomotive since I rebooted my system this morning: it does not start up. I moved the old /Applications/Locomotive2 to a backup and tried installing a new version. However, this did not work. There is a Locomotive process running but it is reported as (Not Responding). I can Force Quit it and retry but I get the same thing. What can I do? Is there a way to completely uninstall it? Steven From ryan.raaum at gmail.com Tue Aug 22 20:32:49 2006 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Tue Aug 22 20:32:56 2006 Subject: [Locomotive-users] Locomotive (Not Responding) In-Reply-To: References: Message-ID: Hi Steven, Wow. I have no idea. Do you have Locomotive set up to start automatically at startup? Can you kill it from the command line? ps -aux | grep Locomotive (to find the pid for Locomotive, then) kill (or, if that's not final enough) kill -9 -Ryan On 8/22/06, Steven Talcott Smith wrote: > > Something is wrong with my Locomotive since I rebooted my system this > morning: it does not start up. > > I moved the old /Applications/Locomotive2 to a backup and tried > installing a new version. However, this did not work. > > There is a Locomotive process running but it is reported as (Not > Responding). I can Force Quit it and retry but I get the same thing. > > What can I do? Is there a way to completely uninstall it? > > > Steven > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > -- Ryan Raaum http://www.anthro.ufl.edu - Molecular Anthropology, University of Florida http://locomotive.raaum.org -- Self contained one-click Rails for Mac OS X -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060822/9a5d6ac3/attachment.htm From steve at talcottsystems.com Tue Aug 22 21:19:28 2006 From: steve at talcottsystems.com (Steven Talcott Smith) Date: Tue Aug 22 21:19:38 2006 Subject: [Locomotive-users] Locomotive (Not Responding) In-Reply-To: References: Message-ID: <6BD3817D-4B48-47E0-9C91-F7D331D04BF3@talcottsystems.com> Strangely enough, it eventually came up. I left for lunch and when I came back it was running. Now it seems to start properly. However, what is the procedure to have it start up automatically? I am using it on one server and I would like it to start automatically on reboot. Much Appreciated, Steven On Aug 22, 2006, at 4:32 PM, Ryan Raaum wrote: > Hi Steven, > > Wow. I have no idea. > > Do you have Locomotive set up to start automatically at startup? > > Can you kill it from the command line? > > ps -aux | grep Locomotive (to find the pid for Locomotive, then) > kill (or, if that's not final enough) > kill -9 > > -Ryan > > On 8/22/06, Steven Talcott Smith < steve@talcottsystems.com> wrote: > Something is wrong with my Locomotive since I rebooted my system this > morning: it does not start up. > > I moved the old /Applications/Locomotive2 to a backup and tried > installing a new version. However, this did not work. > > There is a Locomotive process running but it is reported as (Not > Responding). I can Force Quit it and retry but I get the same thing. > > What can I do? Is there a way to completely uninstall it? > > > Steven > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > > > > -- > Ryan Raaum > http://www.anthro.ufl.edu - Molecular Anthropology, University of > Florida > http://locomotive.raaum.org -- Self contained one-click Rails for > Mac OS X > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060822/b15bf50e/attachment.htm From ryan.raaum at gmail.com Tue Aug 22 21:39:04 2006 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Tue Aug 22 21:39:12 2006 Subject: [Locomotive-users] Locomotive (Not Responding) In-Reply-To: <6BD3817D-4B48-47E0-9C91-F7D331D04BF3@talcottsystems.com> References: <6BD3817D-4B48-47E0-9C91-F7D331D04BF3@talcottsystems.com> Message-ID: On 8/22/06, Steven Talcott Smith wrote: > > Strangely enough, it eventually came up. I left for lunch and when I came > back it was running. Now it seems to start properly. However, what is the > procedure to have it start up automatically? I am using it on one server > and I would like it to start automatically on reboot. > If your server starts up with a user automatically logging in, then you can add Locomotive to that user's startup items Or, less ugly and much more work, create a StartupItem or launchd script that uses the locomotive command line tool. -Ryan Much Appreciated, > > Steven > > > On Aug 22, 2006, at 4:32 PM, Ryan Raaum wrote: > > Hi Steven, > > Wow. I have no idea. > > Do you have Locomotive set up to start automatically at startup? > > Can you kill it from the command line? > > ps -aux | grep Locomotive (to find the pid for Locomotive, then) > kill (or, if that's not final enough) > kill -9 > > -Ryan > > On 8/22/06, Steven Talcott Smith < steve@talcottsystems.com> wrote: > > > > Something is wrong with my Locomotive since I rebooted my system this > > morning: it does not start up. > > > > I moved the old /Applications/Locomotive2 to a backup and tried > > installing a new version. However, this did not work. > > > > There is a Locomotive process running but it is reported as (Not > > Responding). I can Force Quit it and retry but I get the same thing. > > > > What can I do? Is there a way to completely uninstall it? > > > > > > Steven > > _______________________________________________ > > Locomotive-users mailing list > > Locomotive-users@lists.raaum.org > > http://lists.raaum.org/mailman/listinfo/locomotive-users > > > > > > -- > Ryan Raaum > http://www.anthro.ufl.edu - Molecular Anthropology, University of Florida > http://locomotive.raaum.org -- Self contained one-click Rails for Mac OS X > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > > > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > > > -- Ryan Raaum http://www.anthro.ufl.edu - Molecular Anthropology, University of Florida http://locomotive.raaum.org -- Self contained one-click Rails for Mac OS X -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060822/1cfd1175/attachment.htm From richard at infoarts.info Wed Aug 23 00:44:12 2006 From: richard at infoarts.info (Richard Sandilands) Date: Wed Aug 23 00:44:26 2006 Subject: [Locomotive-users] TextMate's Rails bundle and Locomotive Message-ID: I'm using both TextMate & Locomotive. I'm aware of the 'Edit in TextMate' command in Locomotive that opens my Rails app in a Textmate project, however there are a few commands in the Rails bundle in TextMate that require access to the shell and therefore aren't working with Locomotive apps. For instance, the 'Call generate script' and the rake migrate commands. It's not crucial of course that I run these from within TM -- it's not a big deal to cmd-tab across to iTerm to access the command line. But I'm just wondering if there is a way to access the Rails bundle commands in TM for Locomotive-managed projects? -- Richard Sandilands From richard at infoarts.info Wed Aug 23 00:44:12 2006 From: richard at infoarts.info (Richard Sandilands) Date: Wed Aug 23 00:48:47 2006 Subject: [Locomotive-users] TextMate's Rails bundle and Locomotive Message-ID: I'm using both TextMate & Locomotive. I'm aware of the 'Edit in TextMate' command in Locomotive that opens my Rails app in a Textmate project, however there are a few commands in the Rails bundle in TextMate that require access to the shell and therefore aren't working with Locomotive apps. For instance, the 'Call generate script' and the rake migrate commands. It's not crucial of course that I run these from within TM -- it's not a big deal to cmd-tab across to iTerm to access the command line. But I'm just wondering if there is a way to access the Rails bundle commands in TM for Locomotive-managed projects? -- Richard Sandilands From steve at talcottsystems.com Wed Aug 23 16:16:33 2006 From: steve at talcottsystems.com (Steven Talcott Smith) Date: Wed Aug 23 16:16:47 2006 Subject: [Locomotive-users] Locomotive (Not Responding) In-Reply-To: References: <6BD3817D-4B48-47E0-9C91-F7D331D04BF3@talcottsystems.com> Message-ID: Ryan, things are mostly back to normal now but I have one more question/issue... When I open in Terminal, it does not pick up the correct environment. I removed everything in /private/var/tmp/folders.501/ TemporaryItems/ and restarted Locomotive. When I open in Terminal it does the following: steve@sprezzatura ~> source /private/var/tmp/folders.501/ TemporaryItems/DE74E20B-8EE0-474A-B4FA- CAF4DA9C6390-864-00007D75F1E7156D.environment.bash -bash: /private/var/tmp/folders.501/TemporaryItems/DE74E20B-8EE0-474A- B4FA-CAF4DA9C6390-864-00007D75F1E7156D.environment.bash: No such file or directory steve@sprezzatura ~> ls /private/var/tmp/folders.501/TemporaryItems/ 23C291EE-F92C-4DA6- BC6A-92F653C76BF6-840-000012FDF1EB7775.environment.csh 3FC57E20-A4D8-4D05-8FFD- CD97B22C3E93-840-000012FDF1EE246C.environment.bash env steve@sprezzatura ~> As you can see there are two files there but it wants to run something that is not present. When I source instead the one that is actually there, it works. Where does Locomotive pick up the string for the tmp environment.bash ? Why would it not use the string for the file it just created? Much Appreciated, Steve On Aug 22, 2006, at 5:39 PM, Ryan Raaum wrote: > > > On 8/22/06, Steven Talcott Smith wrote: > Strangely enough, it eventually came up. I left for lunch and when > I came back it was running. Now it seems to start properly. > However, what is the procedure to have it start up automatically? > I am using it on one server and I would like it to start > automatically on reboot. > > If your server starts up with a user automatically > logging in, then you can add Locomotive to that user's startup > items > > Or, less ugly and much more work, create a StartupItem or launchd > script that uses the locomotive command line tool. > > -Ryan > > > Much Appreciated, > > Steven > > > On Aug 22, 2006, at 4:32 PM, Ryan Raaum wrote: > >> Hi Steven, >> >> Wow. I have no idea. >> >> Do you have Locomotive set up to start automatically at startup? >> >> Can you kill it from the command line? >> >> ps -aux | grep Locomotive (to find the pid for Locomotive, then) >> kill (or, if that's not final enough) >> kill -9 >> >> -Ryan >> >> On 8/22/06, Steven Talcott Smith < steve@talcottsystems.com> wrote: >> Something is wrong with my Locomotive since I rebooted my system this >> morning: it does not start up. >> >> I moved the old /Applications/Locomotive2 to a backup and tried >> installing a new version. However, this did not work. >> >> There is a Locomotive process running but it is reported as (Not >> Responding). I can Force Quit it and retry but I get the same thing. >> >> What can I do? Is there a way to completely uninstall it? >> >> >> Steven >> _______________________________________________ >> Locomotive-users mailing list >> Locomotive-users@lists.raaum.org >> http://lists.raaum.org/mailman/listinfo/locomotive-users >> >> >> >> -- >> Ryan Raaum >> http://www.anthro.ufl.edu - Molecular Anthropology, University of >> Florida >> http://locomotive.raaum.org -- Self contained one-click Rails for >> Mac OS X >> _______________________________________________ >> Locomotive-users mailing list >> Locomotive-users@lists.raaum.org >> http://lists.raaum.org/mailman/listinfo/locomotive-users > > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > > > > > > -- > Ryan Raaum > http://www.anthro.ufl.edu - Molecular Anthropology, University of > Florida > http://locomotive.raaum.org -- Self contained one-click Rails for > Mac OS X > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060823/f14c7925/attachment.htm From steve at talcottsystems.com Wed Aug 23 16:20:43 2006 From: steve at talcottsystems.com (Steven Talcott Smith) Date: Wed Aug 23 16:20:54 2006 Subject: [Locomotive-users] Locomotive (Not Responding) In-Reply-To: References: <6BD3817D-4B48-47E0-9C91-F7D331D04BF3@talcottsystems.com> Message-ID: <07C61970-4AB5-4196-9D93-9654A56CD415@talcottsystems.com> One further clue on this problem... When I start Terminal.app outside of Locomotive, it gives the same message. Somehow this bit of Locomotive environment is always (erroneously) called by Terminal.app. I think Terminal trying to load this stale environment file causes it to not source the correct one. Steve On Aug 23, 2006, at 12:16 PM, Steven Talcott Smith wrote: > Ryan, things are mostly back to normal now but I have one more > question/issue... > > When I open in Terminal, it does not pick up the correct > environment. I removed everything in /private/var/tmp/folders.501/ > TemporaryItems/ and restarted Locomotive. When I open in Terminal > it does the following: > > steve@sprezzatura ~> source /private/var/tmp/folders.501/ > TemporaryItems/DE74E20B-8EE0-474A-B4FA- > CAF4DA9C6390-864-00007D75F1E7156D.environment.bash > -bash: /private/var/tmp/folders.501/TemporaryItems/ > DE74E20B-8EE0-474A-B4FA- > CAF4DA9C6390-864-00007D75F1E7156D.environment.bash: No such file or > directory > steve@sprezzatura ~> ls /private/var/tmp/folders.501/TemporaryItems/ > 23C291EE-F92C-4DA6- > BC6A-92F653C76BF6-840-000012FDF1EB7775.environment.csh > 3FC57E20-A4D8-4D05-8FFD- > CD97B22C3E93-840-000012FDF1EE246C.environment.bash > env > steve@sprezzatura ~> > > > As you can see there are two files there but it wants to run > something that is not present. When I source instead the one that > is actually there, it works. > > Where does Locomotive pick up the string for the tmp > environment.bash ? Why would it not use the string for the file it > just created? > > > Much Appreciated, > > Steve > > > > On Aug 22, 2006, at 5:39 PM, Ryan Raaum wrote: > >> >> >> On 8/22/06, Steven Talcott Smith wrote: >> Strangely enough, it eventually came up. I left for lunch and >> when I came back it was running. Now it seems to start properly. >> However, what is the procedure to have it start up automatically? >> I am using it on one server and I would like it to start >> automatically on reboot. >> >> If your server starts up with a user >> automatically logging in, then you can add Locomotive to that >> user's startup items >> >> Or, less ugly and much more work, create a StartupItem or launchd >> script that uses the locomotive command line tool. >> >> -Ryan >> >> >> Much Appreciated, >> >> Steven >> >> >> On Aug 22, 2006, at 4:32 PM, Ryan Raaum wrote: >> >>> Hi Steven, >>> >>> Wow. I have no idea. >>> >>> Do you have Locomotive set up to start automatically at startup? >>> >>> Can you kill it from the command line? >>> >>> ps -aux | grep Locomotive (to find the pid for Locomotive, then) >>> kill (or, if that's not final enough) >>> kill -9 >>> >>> -Ryan >>> >>> On 8/22/06, Steven Talcott Smith < steve@talcottsystems.com> wrote: >>> Something is wrong with my Locomotive since I rebooted my system >>> this >>> morning: it does not start up. >>> >>> I moved the old /Applications/Locomotive2 to a backup and tried >>> installing a new version. However, this did not work. >>> >>> There is a Locomotive process running but it is reported as (Not >>> Responding). I can Force Quit it and retry but I get the same >>> thing. >>> >>> What can I do? Is there a way to completely uninstall it? >>> >>> >>> Steven >>> _______________________________________________ >>> Locomotive-users mailing list >>> Locomotive-users@lists.raaum.org >>> http://lists.raaum.org/mailman/listinfo/locomotive-users >>> >>> >>> >>> -- >>> Ryan Raaum >>> http://www.anthro.ufl.edu - Molecular Anthropology, University of >>> Florida >>> http://locomotive.raaum.org -- Self contained one-click Rails for >>> Mac OS X >>> _______________________________________________ >>> Locomotive-users mailing list >>> Locomotive-users@lists.raaum.org >>> http://lists.raaum.org/mailman/listinfo/locomotive-users >> >> >> _______________________________________________ >> Locomotive-users mailing list >> Locomotive-users@lists.raaum.org >> http://lists.raaum.org/mailman/listinfo/locomotive-users >> >> >> >> >> >> -- >> Ryan Raaum >> http://www.anthro.ufl.edu - Molecular Anthropology, University of >> Florida >> http://locomotive.raaum.org -- Self contained one-click Rails for >> Mac OS X >> _______________________________________________ >> Locomotive-users mailing list >> Locomotive-users@lists.raaum.org >> http://lists.raaum.org/mailman/listinfo/locomotive-users > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060823/a579ca44/attachment-0001.htm From steve at talcottsystems.com Wed Aug 23 16:50:36 2006 From: steve at talcottsystems.com (Steven Talcott Smith) Date: Wed Aug 23 16:53:37 2006 Subject: [Locomotive-users] Locomotive (Not Responding) In-Reply-To: <07C61970-4AB5-4196-9D93-9654A56CD415@talcottsystems.com> References: <6BD3817D-4B48-47E0-9C91-F7D331D04BF3@talcottsystems.com> <07C61970-4AB5-4196-9D93-9654A56CD415@talcottsystems.com> Message-ID: Nevermind -- Through some process of removing and re-installing Visor things seem to have cleared up. Very strange. Steve On Aug 23, 2006, at 12:20 PM, Steven Talcott Smith wrote: > One further clue on this problem... When I start Terminal.app > outside of Locomotive, it gives the same message. Somehow this bit > of Locomotive environment is always (erroneously) called by > Terminal.app. I think Terminal trying to load this stale > environment file causes it to not source the correct one. > > Steve > > > On Aug 23, 2006, at 12:16 PM, Steven Talcott Smith wrote: > >> Ryan, things are mostly back to normal now but I have one more >> question/issue... >> >> When I open in Terminal, it does not pick up the correct >> environment. I removed everything in /private/var/tmp/folders.501/ >> TemporaryItems/ and restarted Locomotive. When I open in Terminal >> it does the following: >> >> steve@sprezzatura ~> source /private/var/tmp/folders.501/ >> TemporaryItems/DE74E20B-8EE0-474A-B4FA- >> CAF4DA9C6390-864-00007D75F1E7156D.environment.bash >> -bash: /private/var/tmp/folders.501/TemporaryItems/ >> DE74E20B-8EE0-474A-B4FA- >> CAF4DA9C6390-864-00007D75F1E7156D.environment.bash: No such file >> or directory >> steve@sprezzatura ~> ls /private/var/tmp/folders.501/TemporaryItems/ >> 23C291EE-F92C-4DA6- >> BC6A-92F653C76BF6-840-000012FDF1EB7775.environment.csh >> 3FC57E20-A4D8-4D05-8FFD- >> CD97B22C3E93-840-000012FDF1EE246C.environment.bash >> env >> steve@sprezzatura ~> >> >> >> As you can see there are two files there but it wants to run >> something that is not present. When I source instead the one that >> is actually there, it works. >> >> Where does Locomotive pick up the string for the tmp >> environment.bash ? Why would it not use the string for the file >> it just created? >> >> >> Much Appreciated, >> >> Steve >> >> >> >> On Aug 22, 2006, at 5:39 PM, Ryan Raaum wrote: >> >>> >>> >>> On 8/22/06, Steven Talcott Smith wrote: >>> Strangely enough, it eventually came up. I left for lunch and >>> when I came back it was running. Now it seems to start >>> properly. However, what is the procedure to have it start up >>> automatically? I am using it on one server and I would like it >>> to start automatically on reboot. >>> >>> If your server starts up with a user >>> automatically logging in, then you can add Locomotive to that >>> user's startup items >>> >>> Or, less ugly and much more work, create a StartupItem or launchd >>> script that uses the locomotive command line tool. >>> >>> -Ryan >>> >>> >>> Much Appreciated, >>> >>> Steven >>> >>> >>> On Aug 22, 2006, at 4:32 PM, Ryan Raaum wrote: >>> >>>> Hi Steven, >>>> >>>> Wow. I have no idea. >>>> >>>> Do you have Locomotive set up to start automatically at startup? >>>> >>>> Can you kill it from the command line? >>>> >>>> ps -aux | grep Locomotive (to find the pid for Locomotive, then) >>>> kill (or, if that's not final enough) >>>> kill -9 >>>> >>>> -Ryan >>>> >>>> On 8/22/06, Steven Talcott Smith < steve@talcottsystems.com> wrote: >>>> Something is wrong with my Locomotive since I rebooted my system >>>> this >>>> morning: it does not start up. >>>> >>>> I moved the old /Applications/Locomotive2 to a backup and tried >>>> installing a new version. However, this did not work. >>>> >>>> There is a Locomotive process running but it is reported as (Not >>>> Responding). I can Force Quit it and retry but I get the same >>>> thing. >>>> >>>> What can I do? Is there a way to completely uninstall it? >>>> >>>> >>>> Steven >>>> _______________________________________________ >>>> Locomotive-users mailing list >>>> Locomotive-users@lists.raaum.org >>>> http://lists.raaum.org/mailman/listinfo/locomotive-users >>>> >>>> >>>> >>>> -- >>>> Ryan Raaum >>>> http://www.anthro.ufl.edu - Molecular Anthropology, University >>>> of Florida >>>> http://locomotive.raaum.org -- Self contained one-click Rails >>>> for Mac OS X >>>> _______________________________________________ >>>> Locomotive-users mailing list >>>> Locomotive-users@lists.raaum.org >>>> http://lists.raaum.org/mailman/listinfo/locomotive-users >>> >>> >>> _______________________________________________ >>> Locomotive-users mailing list >>> Locomotive-users@lists.raaum.org >>> http://lists.raaum.org/mailman/listinfo/locomotive-users >>> >>> >>> >>> >>> >>> -- >>> Ryan Raaum >>> http://www.anthro.ufl.edu - Molecular Anthropology, University of >>> Florida >>> http://locomotive.raaum.org -- Self contained one-click Rails for >>> Mac OS X >>> _______________________________________________ >>> Locomotive-users mailing list >>> Locomotive-users@lists.raaum.org >>> http://lists.raaum.org/mailman/listinfo/locomotive-users >> >> _______________________________________________ >> Locomotive-users mailing list >> Locomotive-users@lists.raaum.org >> http://lists.raaum.org/mailman/listinfo/locomotive-users > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060823/a0343e9a/attachment.htm From ryan.raaum at gmail.com Wed Aug 23 21:35:52 2006 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Wed Aug 23 21:35:57 2006 Subject: [Locomotive-users] TextMate's Rails bundle and Locomotive In-Reply-To: References: Message-ID: On 8/22/06, Richard Sandilands wrote: > > I'm using both TextMate & Locomotive. I'm aware of the 'Edit in > TextMate' command in Locomotive that opens my Rails app in a Textmate > project, however there are a few commands in the Rails bundle in > TextMate that require access to the shell and therefore aren't > working with Locomotive apps. > > For instance, the 'Call generate script' and the rake migrate commands. > > It's not crucial of course that I run these from within TM -- it's > not a big deal to cmd-tab across to iTerm to access the command line. > > But I'm just wondering if there is a way to access the Rails bundle > commands in TM for Locomotive-managed projects? Not as such. Although I'm curious what would happen if you started TextMate from the Locomotive shell to start with (i.e. "open /Applications/TextMate.app"). -r -- > Richard Sandilands > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > -- Ryan Raaum http://www.anthro.ufl.edu - Molecular Anthropology, University of Florida http://locomotive.raaum.org -- Self contained one-click Rails for Mac OS X -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060823/9cdf7483/attachment.htm From gmint at midwestdjs.com Fri Aug 25 16:14:46 2006 From: gmint at midwestdjs.com (DJ G Mint) Date: Fri Aug 25 16:15:13 2006 Subject: [Locomotive-users] Simple(?) MySQL/Locomotive Question... Message-ID: Hello all, I'm a complete newbie when it come to Ruby, Rails, and Locomotive and I've gotten about half way through an example on Apple.com and I've hit a bit of a wall. First, what I've got so far. Right now, I've installed the latest version of Locomotive on OS X Server 10.4.7. Everything starts up fine, I've created a new application and I've gotten to the point of creating a database definition file and running "rake migrate" to create my MySQL tables (after editing the database.yml file to connect to the correct MySQL location on my machine). I was also able to successfully set up the scaffolding. However, when I try to connect to the newly created scaffold page (sorry about probably slaughtering that terminology), I get an Action Controller Exception. It looks to me like the root of the problem is: "Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)" Now, I do know what that means--Locomotive is trying to get to the database through the wrong socket. The thing is, I changed it to the correct socket in my application (database.yml) file in order to make the "rake migrate" command work correctly. So, my question is, is there another configuration variable that I'm missing? Or is there something else that I've overlooked? I'm sure this is something really dumb on my part, so please forgive me in advance... -- George Qualley IV D.J. G Mint Thunder & Lightning Sound and Lighting Voice - (515) 255-3698 ? Fax - (515) 309-1910 www.MidwestDJs.com ? www.ThunderAndLightning.net ? www.DesMoinesDJ.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060825/b0f654a1/attachment.htm From ray at warmroom.com Fri Aug 25 17:39:55 2006 From: ray at warmroom.com (Ray Baxter) Date: Fri Aug 25 17:39:59 2006 Subject: [Locomotive-users] Simple(?) MySQL/Locomotive Question... In-Reply-To: References: Message-ID: <44EF35EB.9050404@warmroom.com> DJ G Mint wrote: > I'm a complete newbie when it come to Ruby, Rails, and Locomotive and > I've gotten about half way through an example on Apple.com and I've > hit a bit of a wall. First, what I've got so far. Right now, I've > installed the latest version of Locomotive on OS X Server 10.4.7. > Everything starts up fine, I've created a new application and I've > gotten to the point of creating a database definition file and running > "rake migrate" to create my MySQL tables (after editing the > database.yml file to connect to the correct MySQL location on my > machine). I was also able to successfully set up the scaffolding. > However, when I try to connect to the newly created scaffold page > (sorry about probably slaughtering that terminology), I get an Action > Controller Exception. > > It looks to me like the root of the problem is: "Can't connect to > local MySQL server through socket '/tmp/mysql.sock' (2)" > > Now, I do know what that means--Locomotive is trying to get to the > database through the wrong socket. The thing is, I changed it to the > correct socket in my application (database.yml) file in order to make > the "rake migrate" command work correctly. So, my question is, is > there another configuration variable that I'm missing? Or is there > something else that I've overlooked? > > I'm sure this is something really dumb on my part, so please forgive > me in advance... Have you tried restarting Locomotive? The configuration files are only loaded on startup. Ray -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060825/63fa0660/attachment-0001.htm From gmint at midwestdjs.com Fri Aug 25 17:49:15 2006 From: gmint at midwestdjs.com (DJ G Mint) Date: Fri Aug 25 17:49:40 2006 Subject: [Locomotive-users] Simple(?) MySQL/Locomotive Question... In-Reply-To: <44EF35EB.9050404@warmroom.com> References: <44EF35EB.9050404@warmroom.com> Message-ID: <6F064735-8C2C-4E95-AB56-6DD0A0F94FEA@midwestdjs.com> I am so dumb. Thanks! On Aug 25, 2006, at 12:39 PM, Ray Baxter wrote: > DJ G Mint wrote: >> I'm a complete newbie when it come to Ruby, Rails, and Locomotive >> and I've gotten about half way through an example on Apple.com and >> I've hit a bit of a wall. First, what I've got so far. Right now, >> I've installed the latest version of Locomotive on OS X Server >> 10.4.7. Everything starts up fine, I've created a new application >> and I've gotten to the point of creating a database definition >> file and running "rake migrate" to create my MySQL tables (after >> editing the database.yml file to connect to the correct MySQL >> location on my machine). I was also able to successfully set up >> the scaffolding. However, when I try to connect to the newly >> created scaffold page (sorry about probably slaughtering that >> terminology), I get an Action Controller Exception. >> >> It looks to me like the root of the problem is: "Can't connect to >> local MySQL server through socket '/tmp/mysql.sock' (2)" >> >> Now, I do know what that means--Locomotive is trying to get to the >> database through the wrong socket. The thing is, I changed it to >> the correct socket in my application (database.yml) file in order >> to make the "rake migrate" command work correctly. So, my question >> is, is there another configuration variable that I'm missing? Or >> is there something else that I've overlooked? >> >> I'm sure this is something really dumb on my part, so please >> forgive me in advance... > Have you tried restarting Locomotive? > > The configuration files are only loaded on startup. > > Ray > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users -- George Qualley IV D.J. G Mint Thunder & Lightning Sound and Lighting Voice - (515) 255-3698 ? Fax - (515) 309-1910 www.MidwestDJs.com ? www.ThunderAndLightning.net ? www.DesMoinesDJ.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060825/176e9c4c/attachment.htm From nick.mcfarlane at gmail.com Sat Aug 26 17:11:52 2006 From: nick.mcfarlane at gmail.com (Nick McFarlane) Date: Sat Aug 26 17:11:57 2006 Subject: [Locomotive-users] fastcgi + locomotive Message-ID: <44593dd30608261011x600c70c8s99477163b357ae93@mail.gmail.com> Hi Today I changed the path to my rails application. I removed the old one from locomotive and added in the new pathname. But now it won't run - the server keeps stopping after a few seconds. lighttpd.error.log shows this: 2006-08-26 17:25:44: (log.c.135) server stopped 2006-08-26 17:25:46: (log.c.75) server started 2006-08-26 17:26:10: (mod_fastcgi.c.2430) unexpected end-of-file (perhaps the fastcgi process died): pid: 500 socket: unix:/tmp/ruby- fastcgi.mmtOI.socket-1 2006-08-26 17:26:10: (mod_fastcgi.c.3168) child exited, pid: 500 status: 1 2006-08-26 17:26:10: (mod_fastcgi.c.3215) response not received, request sent: 917 on socket: unix:/tmp/ruby-fastcgi.mmtOI.socket-1 for /dispatch.fcgi , closing connection 2006-08-26 17:27:19: (log.c.135) server stopped Suspecting fastcgi, i decided to update the gem. A simple "gem update fastcgi" doesn't work. The mtmf.log file includes this, which refers to someonelse's desktop: "..."gcc -E -I. -I/Applications/Locomotive2/Bundles/rails112rmagick_ppc.locobundle/framework/lib/ruby/1.8/powerpc- darwin7.9.0 -I/Users/ryan/Desktop/building/max/framework/include -I/Users/ryan/Desktop/building/max/framework/include.." So I tried this: ruby extconf.rb install fcgi -- --with-fcgi-include=/Applications/Locomotive2/Bundles/rails112rmagick_ppc.locobundle/framework/include which gives the error: checking for fcgiapp.h... no checking for fastcgi/fcgiapp.h... no but those files are in the include directory! Help, can anyone help me get the application running in locomotive? thanks loads nick -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060826/ba45fe8b/attachment.htm From nick.mcfarlane at gmail.com Sat Aug 26 17:34:11 2006 From: nick.mcfarlane at gmail.com (Nick McFarlane) Date: Sat Aug 26 17:34:15 2006 Subject: [Locomotive-users] fastcgi + locomotive Message-ID: <44593dd30608261034g5b36bc8sb1b3d70d27cb84ee@mail.gmail.com> An update: Now the application is running more stably (not sure what I did), but when I open a browser on the site it gives a "500 Internal Server Error". Thanks Nick -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060826/035e6e0e/attachment.htm From nick.mcfarlane at gmail.com Sat Aug 26 17:41:58 2006 From: nick.mcfarlane at gmail.com (Nick McFarlane) Date: Sat Aug 26 17:42:16 2006 Subject: [Locomotive-users] fastcgi + locomotive In-Reply-To: <44593dd30608261034g5b36bc8sb1b3d70d27cb84ee@mail.gmail.com> References: <44593dd30608261034g5b36bc8sb1b3d70d27cb84ee@mail.gmail.com> Message-ID: <44593dd30608261041o4ad231ald535ae54b88fb8c6@mail.gmail.com> OK fixed this. I was missing a gem (required in my application) that I re-installed. During the fiasco, I re-isntalled locomotive. I must have lost the original gem. (Don't know how I fixed the original problem, apart from probably the re-install.) Hope this helps someone else out. Nick -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060826/3fee345f/attachment.htm From loriolson at mac.com Mon Aug 28 20:39:27 2006 From: loriolson at mac.com (Lori M Olson) Date: Mon Aug 28 20:39:01 2006 Subject: [Locomotive-users] Can't start application In-Reply-To: <24A5736B-F21F-4166-A67B-D85562E2F4F3@waits.net> References: <24A5736B-F21F-4166-A67B-D85562E2F4F3@waits.net> Message-ID: On 12-Jul-06, at 9:52 PM, Stephen Waits wrote: > > On Jul 12, 2006, at 6:58 PM, Lori M Olson wrote: > >> Is there a log file somewhere I should be looking in? > > Run Console.app, and try again. Let us know if anything's getting > logged when you try to start your app. > > --Steve I this this is a REALLY long time to wait to reply, but I was mostly just working around this issue. Now I need to get a couple of other people using my customized bundle, and I am concerned this is a problem with my bundle or environment. To refresh, I can run my application using "script/server" from a Terminal opened by Locomotive, but I cannot run my application from the Locomotive GUI. Here is the console message when I try to run from the Locomotive GUI ===== Monday, August 28, 2006 1:41:01 PM Canada/Mountain ===== /Users/lori/Applications/Locomotive2/Bundles/ rails112rmagick_ppc.locobundle/bin/launch:139:in `set_environment': undefined method `keys' for nil:NilClass (NoMethodError) I futzed around a little and figured out how to run "launch" from the command-line, and get: ./launch:139:in `set_environment': undefined method `keys' for nil:NilClass (NoMethodError) from ./launch:57:in `main' from ./launch:215 This happens when @environment is nil in the "launch" script. But I can run the "environment" script from the command line (./environment --format ruby) and it returns stuff that looks good to me. I'm thinking it's a problem in the Open4 stuff, but I'm not really familiar enough with what it is doing. Help? Regards, Lori From ryan.raaum at gmail.com Mon Aug 28 23:19:28 2006 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Mon Aug 28 23:19:37 2006 Subject: [Locomotive-users] Can't start application In-Reply-To: References: <24A5736B-F21F-4166-A67B-D85562E2F4F3@waits.net> Message-ID: What happens if you open a shell (normally, not from Locomotive), navigate to the bundle bin directory, start irb, and do: require 'open4' pid, stdin, stdout, stderr = Open4.popen4("./environment --format ruby") env_dict = eval(stdout.read) On 8/28/06, Lori M Olson wrote: > > > On 12-Jul-06, at 9:52 PM, Stephen Waits wrote: > > > > > On Jul 12, 2006, at 6:58 PM, Lori M Olson wrote: > > > >> Is there a log file somewhere I should be looking in? > > > > Run Console.app, and try again. Let us know if anything's getting > > logged when you try to start your app. > > > > --Steve > > I this this is a REALLY long time to wait to reply, but I was mostly > just working around this issue. Now I need to get a couple of other > people using my customized bundle, and I am concerned this is a > problem with my bundle or environment. > > To refresh, I can run my application using "script/server" from a > Terminal opened by Locomotive, but I cannot run my application from > the Locomotive GUI. > > Here is the console message when I try to run from the Locomotive GUI > > ===== Monday, August 28, 2006 1:41:01 PM Canada/Mountain ===== > /Users/lori/Applications/Locomotive2/Bundles/ > rails112rmagick_ppc.locobundle/bin/launch:139:in `set_environment': > undefined method `keys' for nil:NilClass (NoMethodError) > > I futzed around a little and figured out how to run "launch" from the > command-line, and get: > > ./launch:139:in `set_environment': undefined method `keys' for > nil:NilClass (NoMethodError) > from ./launch:57:in `main' > from ./launch:215 > > This happens when @environment is nil in the "launch" script. But I > can run the "environment" script from the command line (./environment > --format ruby) and it returns stuff that looks good to me. > > I'm thinking it's a problem in the Open4 stuff, but I'm not really > familiar enough with what it is doing. > > Help? > > Regards, Lori > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > -- Ryan Raaum http://www.anthro.ufl.edu - Molecular Anthropology, University of Florida http://locomotive.raaum.org -- Self contained one-click Rails for Mac OS X -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060828/8789b061/attachment.htm From loriolson at mac.com Thu Aug 31 14:18:30 2006 From: loriolson at mac.com (Lori M Olson) Date: Thu Aug 31 14:18:40 2006 Subject: [Locomotive-users] Can't start application In-Reply-To: References: <24A5736B-F21F-4166-A67B-D85562E2F4F3@waits.net> Message-ID: <47E43A6F-3B16-41F0-94D8-E914C19668BE@mac.com> On 28-Aug-06, at 5:19 PM, Ryan Raaum wrote: > What happens if you open a shell (normally, not from Locomotive), > navigate to the bundle bin directory, start irb, and do: > > require 'open4' > pid, stdin, stdout, stderr = Open4.popen4("./environment --format > ruby") > env_dict = eval(stdout.read) > This happens. Looks right. I'm really puzzled now. lori@kirin ~/Applications/Locomotive2/Bundles/ rails112rmagickoci8_ppc.locobundle/bin $ irb irb(main):001:0> require 'open4' => true irb(main):002:0> pid, stdin, stdout, stderr = Open4.popen4("./ environment --format ruby") => [732, #, #, #] irb(main):003:0> env_dict = eval(stdout.read) => {"GS_FONTPATH"=>"/usr/lib/X11/fonts/Type1:/usr/lib/X11/fonts/TTF", "GS_LIB"=>"/Users/lori/Applications/Locomotive2/Bundles/ rails112rmagickoci8_ppc.locobundle/framework/share/ghostscript/8.50/ lib:/Users/lori/Applications/Locomotive2/Bundles/ rails112rmagickoci8_ppc.locobundle/framework/share/ghostscript/ fonts", "MAGICK_CODER_MODULE_PATH"=>"/Users/lori/Applications/ Locomotive2/Bundles/rails112rmagickoci8_ppc.locobundle/framework/lib/ ImageMagick-6.2.6/modules-Q16/coders", "RUBYLIB"=>"/Users/lori/ Applications/Locomotive2/Bundles/rails112rmagickoci8_ppc.locobundle/ framework/lib/ruby/site_ruby/1.8:/Users/lori/Applications/Locomotive2/ Bundles/rails112rmagickoci8_ppc.locobundle/framework/lib/ruby/ site_ruby/1.8/powerpc-darwin7.9.0:/Users/lori/Applications/ Locomotive2/Bundles/rails112rmagickoci8_ppc.locobundle/framework/lib/ ruby/1.8:/Users/lori/Applications/Locomotive2/Bundles/ rails112rmagickoci8_ppc.locobundle/framework/lib/ruby/1.8/powerpc- darwin7.9.0", "PATH"=>"/Users/lori/Applications/Locomotive2/Bundles/ rails112rmagickoci8_ppc.locobundle/framework/bin:/Users/lori/ Applications/Locomotive2/Bundles/rails112rmagickoci8_ppc.locobundle/ framework/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/ lori/bin:/Developer/Applications/Oracle/instantclient10_1", "HOME"=>"/ Users/lori", "DYLD_FALLBACK_LIBRARY_PATH"=>"/Users/lori/Applications/ Locomotive2/Bundles/rails112rmagickoci8_ppc.locobundle/framework/lib:/ Developer/Applications/Oracle/instantclient10_1", "MAGICK_CONFIGURE_PATH"=>"/Users/lori/Applications/Locomotive2/ Bundles/rails112rmagickoci8_ppc.locobundle/framework/lib/ ImageMagick-6.2.6/config:/Users/lori/Applications/Locomotive2/Bundles/ rails112rmagickoci8_ppc.locobundle/framework/share/ImageMagick-6.2.6/ config"} irb(main):004:0> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060831/b1bac0ee/attachment.htm