From russell.roberts at lifefoundation.org.uk Sun Jun 3 15:39:18 2007 From: russell.roberts at lifefoundation.org.uk (Russell Roberts) Date: Sun Jun 3 15:39:25 2007 Subject: [Locomotive-users] (no subject) Message-ID: <52C466D2-9281-404E-9811-DA6F4913585B@lifefoundation.org.uk> Hi I have a few projects which I can't open any more I get a local host not found message but I have several projects which do still work. Also I cannot generate controllers in the problem projects Not sure where to start Thank you Russell -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070603/7c96337e/attachment.htm From greg.hauptmann.ruby at gmail.com Sun Jun 3 20:38:01 2007 From: greg.hauptmann.ruby at gmail.com (Greg Hauptmann) Date: Sun Jun 3 20:38:04 2007 Subject: [Locomotive-users] how do I replicate Locomotives terminal environment variable setup for rails? Message-ID: Hi, I'm trying to get an automated iTerm windows setup running, but need to replicate setting the various Ruby and Rails environment variables, that Locomotive must set for me normally when I launch a Terminal from Locomotive. Can anyone advise what is the base set of environment variables I would have to either set, or put in my ~/.profile file, so that when I launch an iTerm/Terminal I would be able to run Ruby and Rails commands per normal ( e.g. ruby script/server) Tks Greg -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070603/d90e6e8b/attachment.htm From grail at goldweb.com.au Sun Jun 3 23:55:47 2007 From: grail at goldweb.com.au (Alex Satrapa) Date: Sun Jun 3 23:55:59 2007 Subject: [Locomotive-users] how do I replicate Locomotives terminal environment variable setup for rails? In-Reply-To: References: Message-ID: On 04/06/2007, at 06:38 , Greg Hauptmann wrote: > I'm trying to get an automated iTerm windows setup running, but > need to replicate setting the various Ruby and Rails environment > variables, that Locomotive must set for me normally when I launch a > Terminal from Locomotive. The easiest way to do this is open Terminal from Locomotive, then inspect the contents of the file which is being 'source'd: > 9:38 [0|2002]% cat /private/var/tmp/folders.503/TemporaryItems/ > 919B2894-122B-11DC-9B16-000D9349F8AA-359-00000005147F9988.environment. > bash The contents of that file could be saved into a separate script which you can invoke from your command prompt to get the setup you're looking for. NB: you will have to change this file any time you change the bundle being used. Alex From grail at goldweb.com.au Mon Jun 4 00:06:50 2007 From: grail at goldweb.com.au (Alex Satrapa) Date: Mon Jun 4 00:07:03 2007 Subject: [Locomotive-users] (no subject) In-Reply-To: <52C466D2-9281-404E-9811-DA6F4913585B@lifefoundation.org.uk> References: <52C466D2-9281-404E-9811-DA6F4913585B@lifefoundation.org.uk> Message-ID: On 04/06/2007, at 01:39 , Russell Roberts wrote: > I have a few projects which I can't open any more I get a local > host not found message but I have several > projects which do still work. If you're getting "localhost: host not found" errors, try changing the name to "localhost.local". If you're getting "can't connect" errors, the problem will be elsewhere (eg: using the wrong bundle). Alex From russell.roberts at lifefoundation.org.uk Mon Jun 4 00:12:31 2007 From: russell.roberts at lifefoundation.org.uk (Russell Roberts) Date: Mon Jun 4 00:12:40 2007 Subject: [Locomotive-users] (no subject) In-Reply-To: References: <52C466D2-9281-404E-9811-DA6F4913585B@lifefoundation.org.uk> Message-ID: <96388B10-8726-4FE0-A3F2-58CA53867409@lifefoundation.org.uk> Thanks you Alex I found the error I did not have a space before the database password in theyml file On 4 Jun 2007, at 01:06, Alex Satrapa wrote: > On 04/06/2007, at 01:39 , Russell Roberts wrote: > >> I have a few projects which I can't open any more I get a local >> host not found message but I have several >> projects which do still work. > > If you're getting "localhost: host not found" errors, try changing > the name to "localhost.local". If you're getting "can't connect" > errors, the problem will be elsewhere (eg: using the wrong bundle). > > Alex > > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > > -- > This email has been verified as Virus free > Virus Protection and more available at http://www.plus.net -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070604/f4299365/attachment.htm From greg.hauptmann.ruby at gmail.com Mon Jun 4 02:45:14 2007 From: greg.hauptmann.ruby at gmail.com (Greg Hauptmann) Date: Mon Jun 4 02:45:20 2007 Subject: [Locomotive-users] how do I replicate Locomotives terminal environment variable setup for rails? In-Reply-To: References: Message-ID: Tks - I'm not at my Mac at the moment Alex, but how did you know where to look for this temp file? Greg On 6/4/07, Alex Satrapa wrote: > > On 04/06/2007, at 06:38 , Greg Hauptmann wrote: > > > I'm trying to get an automated iTerm windows setup running, but > > need to replicate setting the various Ruby and Rails environment > > variables, that Locomotive must set for me normally when I launch a > > Terminal from Locomotive. > > The easiest way to do this is open Terminal from Locomotive, then > inspect the contents of the file which is being 'source'd: > > > 9:38 [0|2002]% cat /private/var/tmp/folders.503/TemporaryItems/ > > 919B2894-122B-11DC-9B16-000D9349F8AA-359-00000005147F9988.environment. > > bash > > The contents of that file could be saved into a separate script which > you can invoke from your command prompt to get the setup you're > looking for. > > NB: you will have to change this file any time you change the bundle > being used. > > Alex > > _______________________________________________ > 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/20070604/e27b72ee/attachment-0001.htm From ray at warmroom.com Mon Jun 4 03:07:01 2007 From: ray at warmroom.com (Ray Baxter) Date: Mon Jun 4 03:07:08 2007 Subject: [Locomotive-users] how do I replicate Locomotives terminal environment variable setup for rails? In-Reply-To: References: Message-ID: <466381D5.2030103@warmroom.com> Greg Hauptmann wrote: > On 6/4/07, *Alex Satrapa* < grail@goldweb.com.au > > wrote: > > The easiest way to do this is open Terminal from Locomotive, then > inspect the contents of the file which is being 'source'd: > > > 9:38 [0|2002]% cat /private/var/tmp/folders.503/TemporaryItems/ > > > 919B2894-122B-11DC-9B16-000D9349F8AA-359-00000005147F9988.environment. > > bash > > The contents of that file could be saved into a separate script which > you can invoke from your command prompt to get the setup you're > looking for. > > Tks - I'm not at my Mac at the moment Alex, but how did you know where > to look for this temp file? When you open a terminal from Locomotive, the location of this file is displayed in the terminal. Command-T or Applications -> Open Terminal, to open a terminal. The name will be essentially what Alex said, "/private/var/tmp/folders.${UID}/TemporaryItems/${GUID}.environment" where UID is your user id on the local machine (the command "echo $UID" will show you what your uid is if your shell is bash) and GUID is a hex string of the indicated format. The only part of the string that varies from invocation to invocation is the GUID, and the files themselves are also the same for every terminal using the given project so long as your bundle and your project don't change. -- Ray -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070604/fcbfd4ee/attachment.htm From greg.hauptmann.ruby at gmail.com Mon Jun 4 03:14:58 2007 From: greg.hauptmann.ruby at gmail.com (Greg Hauptmann) Date: Mon Jun 4 03:15:04 2007 Subject: [Locomotive-users] how do I replicate Locomotives terminal environment variable setup for rails? In-Reply-To: <466381D5.2030103@warmroom.com> References: <466381D5.2030103@warmroom.com> Message-ID: excellent - thanks guys - will try this later today On 6/4/07, Ray Baxter wrote: > > Greg Hauptmann wrote: > > On 6/4/07, Alex Satrapa < grail@goldweb.com.au> wrote: > > > > The easiest way to do this is open Terminal from Locomotive, then > > inspect the contents of the file which is being 'source'd: > > > > > 9:38 [0|2002]% cat /private/var/tmp/folders.503/TemporaryItems/ > > > 919B2894-122B-11DC-9B16-000D9349F8AA-359-00000005147F9988.environment. > > > bash > > > > The contents of that file could be saved into a separate script which > > you can invoke from your command prompt to get the setup you're > > looking for. > > > > Tks - I'm not at my Mac at the moment Alex, but how did you know where > to look for this temp file? > > > When you open a terminal from Locomotive, the location of this file is > displayed in the terminal. Command-T or Applications -> Open Terminal, to > open a terminal. > > The name will be essentially what Alex said, > "/private/var/tmp/folders.${UID}/TemporaryItems/${GUID}.environment" where > UID is your user id on the local machine (the command "echo $UID" will show > you what your uid is if your shell is bash) and GUID is a hex string of the > indicated format. The only part of the string that varies from invocation to > invocation is the GUID, and the files themselves are also the same for every > terminal using the given project so long as your bundle and your project > don't change. > > -- > > Ray > > > > _______________________________________________ > 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/20070604/1448f097/attachment.htm From hajosmulders at gmail.com Tue Jun 5 16:45:59 2007 From: hajosmulders at gmail.com (Hajo Smulders) Date: Tue Jun 5 16:46:03 2007 Subject: [Locomotive-users] RubyGems ? Message-ID: <85a643220706050945j4e4297e1me335ad9cf38fdc9b@mail.gmail.com> I installed Locomotive on OS X. Where does Locomotive stick RubyGems? And what is the recommended symlink so that I can just call it from my shell? Hajo -- ---------------------------------------------------------------------------------------------- A woman marries a man expecting he will change, but he doesn't. A man marries a woman expecting that she won't change & she does. From johnfromberkeley at gmail.com Wed Jun 6 13:09:49 2007 From: johnfromberkeley at gmail.com (John Holland) Date: Wed Jun 6 13:09:53 2007 Subject: [Locomotive-users] DB OK, but can't get past "welcome aboard" Message-ID: <7fb1047d0706060609o7d342a15pb421e0fd9d84df1d@mail.gmail.com> hi, i just installed locomotive (excellent!), and i'm following the this tutorial: http://developer.apple.com/tools/rubyonrails.html i generated my first scaffold, but when i restart the app, i still get the "welcome aboard" message page, instead of the app i'm building. i know the db is working, because db:migrate worked fine, and the tables are in the sql database. am i missing something? (i haven't actively addressed step 3 on the welcome screen: "Set up a default route and remove or rename this file". could this be it?) From listcatcher at gmail.com Wed Jun 6 13:28:28 2007 From: listcatcher at gmail.com (George Bailey) Date: Wed Jun 6 13:30:05 2007 Subject: [Locomotive-users] DB OK, but can't get past "welcome aboard" In-Reply-To: <7fb1047d0706060609o7d342a15pb421e0fd9d84df1d@mail.gmail.com> References: <7fb1047d0706060609o7d342a15pb421e0fd9d84df1d@mail.gmail.com> Message-ID: <73266D0E-EF19-4267-BD52-5333C186F319@gmail.com> On Jun 6, 2007, at 7:09 AM, John Holland wrote: > hi, > > i just installed locomotive (excellent!), and i'm following the > this tutorial: > > http://developer.apple.com/tools/rubyonrails.html > > i generated my first scaffold, but when i restart the app, i still get > the "welcome aboard" message page, instead of the app i'm building. > > i know the db is working, because db:migrate worked fine, and the > tables are in the sql database. > > am i missing something? (i haven't actively addressed step 3 on the > welcome screen: "Set up a default route and remove or rename this > file". could this be it?) delete the index.html file, and in config/routes.rb have a line that's something like this: map.connect '', :controller => "login", :action => "login" Change the controller and action to be the place you want to start. What that does is tell rails what to do when there's only a bare URL ( the '' means that.) From johnfromberkeley at gmail.com Wed Jun 6 13:38:17 2007 From: johnfromberkeley at gmail.com (John Holland) Date: Wed Jun 6 13:38:21 2007 Subject: [Locomotive-users] DB OK, but can't get past "welcome aboard" In-Reply-To: <73266D0E-EF19-4267-BD52-5333C186F319@gmail.com> References: <7fb1047d0706060609o7d342a15pb421e0fd9d84df1d@mail.gmail.com> <73266D0E-EF19-4267-BD52-5333C186F319@gmail.com> Message-ID: <7fb1047d0706060638n2df5e95cj3c5181bb8218928a@mail.gmail.com> On 6/6/07, George Bailey wrote: > > On Jun 6, 2007, at 7:09 AM, John Holland wrote: > > > [snip] > > > delete the index.html file, and in config/routes.rb have a line > that's something like this: > > map.connect '', :controller => "login", :action => "login" > > Change the controller and action to be the place you want to start. > What that does is tell rails what to do when there's only a bare URL > ( the '' means that.) newbie here. by "place" do you mean a directory location? not sure where to go from here. thanks so much. From listcatcher at gmail.com Wed Jun 6 14:08:25 2007 From: listcatcher at gmail.com (George Bailey) Date: Wed Jun 6 14:10:33 2007 Subject: [Locomotive-users] DB OK, but can't get past "welcome aboard" In-Reply-To: <7fb1047d0706060638n2df5e95cj3c5181bb8218928a@mail.gmail.com> References: <7fb1047d0706060609o7d342a15pb421e0fd9d84df1d@mail.gmail.com> <73266D0E-EF19-4267-BD52-5333C186F319@gmail.com> <7fb1047d0706060638n2df5e95cj3c5181bb8218928a@mail.gmail.com> Message-ID: On Jun 6, 2007, at 7:38 AM, John Holland wrote: > On 6/6/07, George Bailey wrote: >> >> On Jun 6, 2007, at 7:09 AM, John Holland wrote: >> >> > [snip] >> >> >> delete the index.html file, and in config/routes.rb have a line >> that's something like this: >> >> map.connect '', :controller => "login", :action => "login" >> >> Change the controller and action to be the place you want to start. >> What that does is tell rails what to do when there's only a bare URL >> ( the '' means that.) > > newbie here. by "place" do you mean a directory location? not sure > where to go from here. By place, I mean what action do you want to be the "start" of your application? I just looked at the Apple article. What do you get when you follow this link? http://localhost:3000/expenses That should get you to the index action of the expenses controller. So using my earlier line, if you wanted to begin at this 'place', you make that line be map.connect '', :controller => "expenses", :action => "index" By the way, you should consider joining the rails list at http://groups.google.com/group/rubyonrails-talk?hl=en That's a terrific source of info and advice. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070606/0953ed78/attachment.htm From johnfromberkeley at gmail.com Wed Jun 6 15:52:59 2007 From: johnfromberkeley at gmail.com (John Holland) Date: Wed Jun 6 15:53:04 2007 Subject: [Locomotive-users] DB OK, but can't get past "welcome aboard" In-Reply-To: References: <7fb1047d0706060609o7d342a15pb421e0fd9d84df1d@mail.gmail.com> <73266D0E-EF19-4267-BD52-5333C186F319@gmail.com> <7fb1047d0706060638n2df5e95cj3c5181bb8218928a@mail.gmail.com> Message-ID: <7fb1047d0706060852s513cfc04hd55f3b77f2889d8b@mail.gmail.com> that worked. thanks. i have a lot to learn. thanks for the referral to groups. On 6/6/07, George Bailey wrote: > > > > On Jun 6, 2007, at 7:38 AM, John Holland wrote: > > On 6/6/07, George Bailey wrote: > > On Jun 6, 2007, at 7:09 AM, John Holland wrote: > > > [snip] > > > delete the index.html file, and in config/routes.rb have a line > that's something like this: > > map.connect '', :controller => "login", :action => "login" > > Change the controller and action to be the place you want to start. > What that does is tell rails what to do when there's only a bare URL > ( the '' means that.) > > newbie here. by "place" do you mean a directory location? not sure > where to go from here. > By place, I mean what action do you want to be the "start" of your > application? > I just looked at the Apple article. What do you get when you follow this > link? > > http://localhost:3000/expenses > > That should get you to the index action of the expenses controller. > So using my earlier line, if you wanted to begin at this 'place', you make > that line be > > map.connect '', :controller => "expenses", :action => "index" > > > By the way, you should consider joining the rails list at > > http://groups.google.com/group/rubyonrails-talk?hl=en > > That's a terrific source of info and advice. > > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > > From listcatcher at gmail.com Wed Jun 6 16:00:40 2007 From: listcatcher at gmail.com (George Bailey) Date: Wed Jun 6 16:02:18 2007 Subject: [Locomotive-users] DB OK, but can't get past "welcome aboard" In-Reply-To: <7fb1047d0706060852s513cfc04hd55f3b77f2889d8b@mail.gmail.com> References: <7fb1047d0706060609o7d342a15pb421e0fd9d84df1d@mail.gmail.com> <73266D0E-EF19-4267-BD52-5333C186F319@gmail.com> <7fb1047d0706060638n2df5e95cj3c5181bb8218928a@mail.gmail.com> <7fb1047d0706060852s513cfc04hd55f3b77f2889d8b@mail.gmail.com> Message-ID: <1C7A7B05-B322-4BDB-905B-FEF275F77334@gmail.com> On Jun 6, 2007, at 9:52 AM, John Holland wrote: > that worked. thanks. i have a lot to learn. thanks for the referral > to groups. Glad you got it working. You should really consider this book: http://www.pragmaticprogrammer.com/titles/rails/index.html Working through that book is where I began. It's *really* good. Get the pdf version, as you'll be doing plenty of searching in it later on. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070606/96d9b437/attachment-0001.htm From thoma127 at umn.edu Thu Jun 7 14:41:12 2007 From: thoma127 at umn.edu (Tony Thomas) Date: Thu Jun 7 14:41:33 2007 Subject: [Locomotive-users] coding protected method Message-ID: Hi All, I'm a new to Ruby on Rails and I'm using MAMP with Locomotive on OS X 10.4. I'm working my way through AGILE WEB DEVELOPMENT WITH RAILS and I've run into a problem early on. I'm trying to code a protected method as suggested in the book. Here's the code: class Product < ActiveRecord::Base validates_presence_of :title, :description, :image_url validates_numericality_of :price end protected def validate errors.add(:price, "should be at least 0.01") if price.nil? || price < 0.01 end By all appearances the coding seems correct except I get the following error message: NameError in AdminController#index undefined local variable or method `protected' for main:Object RAILS_ROOT: /Users/tonythomas/Documents/ruby/depot/config/.. Application Trace | Framework Trace | Full Trace #{RAILS_ROOT}/app/models/product.rb:6 /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/ powerpc/bin/mongrel_rails:16:in `load' /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/ powerpc/bin/mongrel_rails:16 Request Parameters: None Show session dump --- flash: !map:ActionController::Flash::FlashHash {} Response Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} What am I missing/doing wrong? Thanks, Tony -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070607/51087be2/attachment.htm From masterkain at gmail.com Thu Jun 7 14:45:23 2007 From: masterkain at gmail.com (Claudio Poli) Date: Thu Jun 7 14:45:32 2007 Subject: [Locomotive-users] coding protected method In-Reply-To: References: Message-ID: <46C3F982-C45C-4B94-91A9-A905F8E6C8EA@gmail.com> what it has to do with locomotive? Il giorno 07/giu/07, alle ore 16:41, Tony Thomas ha scritto: > Hi All, > > I'm a new to Ruby on Rails and I'm using MAMP with Locomotive on OS > X 10.4. I'm working my way through AGILE WEB DEVELOPMENT WITH RAILS > and I've run into a problem early on. I'm trying to code a > protected method as suggested in the book. Here's the code: > > class Product < ActiveRecord::Base > validates_presence_of :title, :description, :image_url > validates_numericality_of :price > end > > protected > def validate > errors.add(:price, "should be at least 0.01") if price.nil? || > price < 0.01 > end > > By all appearances the coding seems correct except I get the > following error message: > > NameError in AdminController#index > > undefined local variable or method `protected' for main:Object > > RAILS_ROOT: /Users/tonythomas/Documents/ruby/depot/config/.. > Application Trace | Framework Trace | Full Trace > > #{RAILS_ROOT}/app/models/product.rb:6 > /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/ > powerpc/bin/mongrel_rails:16:in `load' > /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/ > powerpc/bin/mongrel_rails:16 > > Request > > Parameters: None > > Show session dump > > --- > flash: !map:ActionController::Flash::FlashHash {} > > > Response > Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} > > What am I missing/doing wrong? > > Thanks, > > Tony > _______________________________________________ > 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/20070607/8b30346c/attachment-0001.htm From jim at jimjames.org Thu Jun 7 14:49:56 2007 From: jim at jimjames.org (Jim James) Date: Thu Jun 7 14:50:07 2007 Subject: [Locomotive-users] coding protected method In-Reply-To: References: Message-ID: Hi Tony, You closed your class definition before the protected methods were defined. That first "end" should be at the very bottom, after the "end" for the validate method. Therefore the "protected" keyword is hanging out in space and not part of your class definition - and consequently an unknown method. The ADWR book is a tad confusing in the way they formatted that conversation. In the second edition, look at page 76 at the end of Section 6.3 to see a full class definition that shows the complete picture. Good luck. Good question. Jim. On Jun 7, 2007, at 8:41 AM, Tony Thomas wrote: > Hi All, > > I'm a new to Ruby on Rails and I'm using MAMP with Locomotive on OS > X 10.4. I'm working my way through AGILE WEB DEVELOPMENT WITH RAILS > and I've run into a problem early on. I'm trying to code a > protected method as suggested in the book. Here's the code: > > class Product < ActiveRecord::Base > validates_presence_of :title, :description, :image_url > validates_numericality_of :price > end > > protected > def validate > errors.add(:price, "should be at least 0.01") if price.nil? || > price < 0.01 > end > > By all appearances the coding seems correct except I get the > following error message: > > NameError in AdminController#index > > undefined local variable or method `protected' for main:Object > > RAILS_ROOT: /Users/tonythomas/Documents/ruby/depot/config/.. > Application Trace | Framework Trace | Full Trace > > #{RAILS_ROOT}/app/models/product.rb:6 > /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/ > powerpc/bin/mongrel_rails:16:in `load' > /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/ > powerpc/bin/mongrel_rails:16 > > Request > > Parameters: None > > Show session dump > > --- > flash: !map:ActionController::Flash::FlashHash {} > > > Response > Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} > > What am I missing/doing wrong? > > Thanks, > > Tony > _______________________________________________ > 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/20070607/98b46da4/attachment.htm From thoma127 at umn.edu Thu Jun 7 14:50:59 2007 From: thoma127 at umn.edu (Tony Thomas) Date: Thu Jun 7 14:51:05 2007 Subject: [Locomotive-users] coding protected method In-Reply-To: <46C3F982-C45C-4B94-91A9-A905F8E6C8EA@gmail.com> References: <46C3F982-C45C-4B94-91A9-A905F8E6C8EA@gmail.com> Message-ID: Well, I guess I'm asking IF this has anything to do with Locomotive, my version and etc. and if it does, how can I fix it? Like I said, I'm fairly new to this, but it seems like it might be an issue with a bundle since as far as I can tell from the book and from other "protected" coding I've come across on the web, the code itself is OK. If I'm wrong I can take my question elsewhere. On Jun 7, 2007, at 9:45 AM, Claudio Poli wrote: > what it has to do with locomotive? > > Il giorno 07/giu/07, alle ore 16:41, Tony Thomas ha scritto: > >> Hi All, >> >> I'm a new to Ruby on Rails and I'm using MAMP with Locomotive on >> OS X 10.4. I'm working my way through AGILE WEB DEVELOPMENT WITH >> RAILS and I've run into a problem early on. I'm trying to code a >> protected method as suggested in the book. Here's the code: >> >> class Product < ActiveRecord::Base >> validates_presence_of :title, :description, :image_url >> validates_numericality_of :price >> end >> >> protected >> def validate >> errors.add(:price, "should be at least 0.01") if price.nil? || >> price < 0.01 >> end >> >> By all appearances the coding seems correct except I get the >> following error message: >> >> NameError in AdminController#index >> >> undefined local variable or method `protected' for main:Object >> >> RAILS_ROOT: /Users/tonythomas/Documents/ruby/depot/config/.. >> Application Trace | Framework Trace | Full Trace >> >> #{RAILS_ROOT}/app/models/product.rb:6 >> /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/ >> powerpc/bin/mongrel_rails:16:in `load' >> /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/ >> powerpc/bin/mongrel_rails:16 >> >> Request >> >> Parameters: None >> >> Show session dump >> >> --- >> flash: !map:ActionController::Flash::FlashHash {} >> >> >> Response >> Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} >> >> What am I missing/doing wrong? >> >> Thanks, >> >> Tony >> _______________________________________________ >> 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 Tony Thomas Data Manager University of Minnesota Clinical Virology Programs thoma127@umn.edu Phone: 612-626-3754 Fax: 612-626-1923 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070607/ed2d7b58/attachment-0001.htm From thoma127 at umn.edu Thu Jun 7 14:55:58 2007 From: thoma127 at umn.edu (Tony Thomas) Date: Thu Jun 7 14:56:06 2007 Subject: [Locomotive-users] coding protected method In-Reply-To: References: Message-ID: Thanks. I guess it wasn't a Locomotive problem. That solved it straight away. On Jun 7, 2007, at 9:49 AM, Jim James wrote: > Hi Tony, > > You closed your class definition before the protected methods were > defined. That first "end" should be at the very bottom, after the > "end" for the validate method. Therefore the "protected" keyword is > hanging out in space and not part of your class definition - and > consequently an unknown method. > > The ADWR book is a tad confusing in the way they formatted that > conversation. In the second edition, look at page 76 at the end of > Section 6.3 to see a full class definition that shows the complete > picture. > > Good luck. Good question. > > Jim. > > On Jun 7, 2007, at 8:41 AM, Tony Thomas wrote: > >> Hi All, >> >> I'm a new to Ruby on Rails and I'm using MAMP with Locomotive on >> OS X 10.4. I'm working my way through AGILE WEB DEVELOPMENT WITH >> RAILS and I've run into a problem early on. I'm trying to code a >> protected method as suggested in the book. Here's the code: >> >> class Product < ActiveRecord::Base >> validates_presence_of :title, :description, :image_url >> validates_numericality_of :price >> end >> >> protected >> def validate >> errors.add(:price, "should be at least 0.01") if price.nil? || >> price < 0.01 >> end >> >> By all appearances the coding seems correct except I get the >> following error message: >> >> NameError in AdminController#index >> >> undefined local variable or method `protected' for main:Object >> >> RAILS_ROOT: /Users/tonythomas/Documents/ruby/depot/config/.. >> Application Trace | Framework Trace | Full Trace >> >> #{RAILS_ROOT}/app/models/product.rb:6 >> /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/ >> powerpc/bin/mongrel_rails:16:in `load' >> /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/ >> powerpc/bin/mongrel_rails:16 >> >> Request >> >> Parameters: None >> >> Show session dump >> >> --- >> flash: !map:ActionController::Flash::FlashHash {} >> >> >> Response >> Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} >> >> What am I missing/doing wrong? >> >> Thanks, >> >> Tony >> _______________________________________________ >> 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 Tony Thomas Data Manager University of Minnesota Clinical Virology Programs thoma127@umn.edu Phone: 612-626-3754 Fax: 612-626-1923 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070607/904a0eae/attachment.htm From grail at goldweb.com.au Thu Jun 7 23:12:46 2007 From: grail at goldweb.com.au (Alex Satrapa) Date: Thu Jun 7 23:13:04 2007 Subject: [Locomotive-users] coding protected method In-Reply-To: References: <46C3F982-C45C-4B94-91A9-A905F8E6C8EA@gmail.com> Message-ID: <9B3DA514-7222-4798-87DC-1AC2076C937C@goldweb.com.au> On 08/06/2007, at 00:50 , Tony Thomas wrote: > If I'm wrong I can take my question elsewhere. The Ruby on Rails discussion group on Google is a great place to start: http://groups.google.com/group/rubyonrails-talk From paul at paulbrackenridge.com Mon Jun 11 16:27:38 2007 From: paul at paulbrackenridge.com (Paul Brackenridge) Date: Mon Jun 11 16:27:46 2007 Subject: [Locomotive-users] Locomotive Rails Bundle Errors Message-ID: <61360a9c0706110927i602a51d6p7b0706842149bf3a@mail.gmail.com> I am trying to get image uploading and thumbnailing working with Locomotive using Attachment_fu and Rmagick. I know that the code itself is correct as my co-developer has it running fine on his machine after checking out a copy from subversion. I have downloaded "RMagick Rails Bundle Mar 2007 for 10.4 Intel" from raaum.org, I then installed it removed my project from Loco and then added it again specifying "Rmagick Rails" instead of "Standard Rails" from the drop down. When I come to start the project through Loco I can't access it through a browser. I then open a terminal through Loco and try to start the project manually at which point it gives the following error: [error] /usr/bin/ld: can't locate file for: -lfreeimage collect2: ld returned 1 exit status Exiting /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/gems/1.8/gems/RubyInline- 3.6.2/./inline.rb:408:in `build': error executing cc -dynamic -bundle -undefined suppress -flat_namespace -I/opt/local/include -I/Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/include -pipe -fno-common -I /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/1.8/i686- darwin8.9.1 -o "/Users/paulbrackenridge/.ruby_inline/Inline_ImageScience_aa58.bundle" "/Users/paulbrackenridge/.ruby_inline/Inline_ImageScience_aa58.c" -L/opt/local/lib -lfreeimage -lstdc++: 256 (CompilationError) Renamed /Users/paulbrackenridge/.ruby_inline/Inline_ImageScience_aa58.c to /Users/paulbrackenridge/.ruby_inline/Inline_ImageScience_aa58.c.bad from /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/gems/1.8/gems/RubyInline- 3.6.2/./inline.rb:628:in `inline' from /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/gems/1.8/gems/image_science- 1.1.1/lib/image_science.rb:84 from /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require' from /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require' from /Users/paulbrackenridge/Rails/projects/work/esquires/code/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require' from /Users/paulbrackenridge/Rails/projects/work/esquires/code/vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in' from /Users/paulbrackenridge/Rails/projects/work/esquires/code/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require' from /Users/paulbrackenridge/Rails/projects/work/esquires/code/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/processors/image_science_processor.rb:1 ... 64 levels... [/error] Any help would be greatly appreciated as I am very quickly running out of ideas as to how to get rmagick to work!! Thanks, P -- Paul Brackenridge -------------------------------------------------- T - 01484 513064 M - 078 6662 3067 E - paul@paulbrackenridge.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070611/b9487ce7/attachment.htm From paul at paulbrackenridge.com Mon Jun 11 16:54:36 2007 From: paul at paulbrackenridge.com (Paul Brackenridge) Date: Mon Jun 11 16:54:47 2007 Subject: [Locomotive-users] Re: Locomotive Rails Bundle Errors In-Reply-To: <61360a9c0706110927i602a51d6p7b0706842149bf3a@mail.gmail.com> References: <61360a9c0706110927i602a51d6p7b0706842149bf3a@mail.gmail.com> Message-ID: <61360a9c0706110954r242c08au6ae0a14edb7b569c@mail.gmail.com> I know top-posting is poor form, but wasn't sure what the rules were when added to my own original post..... Anyway, I noticed that when running the standard rails bundle a file locomotive.pid is added to project_file/logs, however, if I click get info and change the framework to Rmagic Rails there is no longer a locomotive.pid file. This is reflected in Console.app where it says pid: /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/bin/terminate:168:in `get_pid': Could not find pid file: /Users/paulbrackenridge/Rails/projects/work/esquires/code/log/locomotive.pid (TerminateApp::PidFileMissingError) On 6/11/07, Paul Brackenridge wrote: > > I am trying to get image uploading and thumbnailing working with > Locomotive using Attachment_fu and > Rmagick. I know that the code itself is correct as my co-developer has it > running fine on his machine > after checking out a copy from subversion. > > I have downloaded "RMagick Rails Bundle Mar 2007 for 10.4 Intel" from > raaum.org, I then installed it > removed my project from Loco and then added it again specifying "Rmagick > Rails" instead of "Standard Rails" > from the drop down. > > When I come to start the project through Loco I can't access it through a > browser. I then open a terminal > through Loco and try to start the project manually at which point it gives > the following error: > > [error] > > /usr/bin/ld: can't locate file for: -lfreeimage > collect2: ld returned 1 exit status > Exiting > /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/gems/1.8/gems/RubyInline- > 3.6.2/./inline.rb:408:in `build': error executing cc -dynamic -bundle > -undefined suppress -flat_namespace -I/opt/local/include > -I/Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/include > -pipe -fno-common -I > /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/1.8/i686- > darwin8.9.1 -o > "/Users/paulbrackenridge/.ruby_inline/Inline_ImageScience_aa58.bundle" > "/Users/paulbrackenridge/.ruby_inline/Inline_ImageScience_aa58.c" > -L/opt/local/lib -lfreeimage -lstdc++: 256 (CompilationError) > Renamed /Users/paulbrackenridge/.ruby_inline/Inline_ImageScience_aa58.c to > /Users/paulbrackenridge/.ruby_inline/Inline_ImageScience_aa58.c.bad from > /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/gems/1.8/gems/RubyInline- > 3.6.2/./inline.rb:628:in `inline' > from > /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/gems/1.8/gems/image_science- > 1.1.1/lib/image_science.rb:84 > from > /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in > `gem_original_require' > from > /Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in > `require' > from > /Users/paulbrackenridge/Rails/projects/work/esquires/code/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in > `require' > from > /Users/paulbrackenridge/Rails/projects/work/esquires/code/vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in > `new_constants_in' > from > /Users/paulbrackenridge/Rails/projects/work/esquires/code/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in > `require' > from > /Users/paulbrackenridge/Rails/projects/work/esquires/code/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/processors/image_science_processor.rb:1 > ... 64 levels... > > [/error] > > Any help would be greatly appreciated as I am very quickly running out of > ideas as to how to get > rmagick to work!! > > Thanks, > > P > > -- > Paul Brackenridge > > -------------------------------------------------- > T - 01484 513064 > M - 078 6662 3067 > E - paul@paulbrackenridge.com -- Paul Brackenridge -------------------------------------------------- T - 01484 513064 M - 078 6662 3067 E - paul@paulbrackenridge.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070611/d16ad55b/attachment.htm From matt-lists at reprocessed.org Sun Jun 17 07:32:36 2007 From: matt-lists at reprocessed.org (Matt Patterson) Date: Sun Jun 17 07:32:56 2007 Subject: [Locomotive-users] Bug in Mar 2007 bundle Message-ID: Hey there, I think I've located a bug in the March 2007 standard bundle: dyld: NSLinkModule() error dyld: Library not loaded: /Applications/Locomotive2/Bundles/ standardRailsMar2007.locobundle/i386/lib/libssl.0.9.8.dylib Referenced from: /Applications/Utilities/Locomotive2/Bundles/ standardRailsMar2007.locobundle/i386/lib/ruby/1.8/i686-darwin8.9.1/ openssl.bundle Reason: image not found So, i386/lib/ruby/1.8/i686-darwin8.9.1/openssl.bundle thinks that libssl.0.9.8.dylib lives in /Applications/Locomotive2/Bundles/ standardRailsMar2007.locobundle/i386/lib/ rather than /Applications/ Utilities/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/lib/ My Locomotive lives under /Applications/Utilities... It looks to me like openssl is being built with a hardcoded link to the .dylib, rather than using LD_LIBRARY_PATH (or whatver the OS X equivalent is), but then it is 1 AM and I am still hacking. Matt -- Matt Patterson | Design & Code | http://www.reprocessed.org/ From lanny.rosicky at gmail.com Sun Jun 24 08:39:23 2007 From: lanny.rosicky at gmail.com (V. Lanny Rosicky) Date: Sun Jun 24 08:39:36 2007 Subject: [Locomotive-users] Uninstall cleanup Message-ID: <506CB817-E11A-4B07-BB07-92284B2BE085@gmail.com> I am trying to unistall Locomotive2. Please advise on hot to get rid off these environment items, left behid: CFLAGS=-I/Applications/Locomotive2/Bundles/ rmagickRailsMar2007_i386.locobundle/REPLACE_PROCESSOR/include CPPFLAGS=-I/Applications/Locomotive2/Bundles/ rmagickRailsMar2007_i386.locobundle/REPLACE_PROCESSOR/include CXXFLAGS=-I/Applications/Locomotive2/Bundles/ rmagickRailsMar2007_i386.locobundle/REPLACE_PROCESSOR/include DYLD_FALLBACK_LIBRARY_PATH=/Applications/Locomotive2/Bundles/ rmagickRailsMar2007_i386.locobundle/framework/lib:/usr/lib GS_LIB=/Applications/Locomotive2/Bundles/ rmagickRailsMar2007_i386.locobundle/framework/share/ghostscript/8.54/ lib:/Applications/Locomotive2/Bundles/ rmagickRailsMar2007_i386.locobundle/framework/share/ghostscript/fonts LDFLAGS='-L/Applications/Locomotive2/Bundles/ rmagickRailsMar2007_i386.locobundle/REPLACE_PROCESSOR/lib - headerpad_max_install_names' MAGICK_CODER_MODULE_PATH=/Applications/Locomotive2/Bundles/ rmagickRailsMar2007_i386.locobundle/framework/lib/ImageMagick-6.3.3/ modules-Q16/coders MAGICK_CONFIGURE_PATH=/Applications/Locomotive2/Bundles/ rmagickRailsMar2007_i386.locobundle/framework/lib/ImageMagick-6.3.3/ config:/Applications/Locomotive2/Bundles/ rmagickRailsMar2007_i386.locobundle/framework/share/ImageMagick-6.3.3/ config PATH=/Applications/Locomotive2/Bundles/ rmagickRailsMar2007_i386.locobundle/framework/bin:/Applications/ Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/ sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/lanny/bin: RUBYLIB=/Applications/Locomotive2/Bundles/ rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/site_ruby/1.8:/ Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/ framework/lib/ruby/site_ruby/1.8/i686-darwin8.9.1:/Applications/ Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ ruby/1.8:/Applications/Locomotive2/Bundles/ rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/1.8/i686- darwin8.9.1 From ryan.raaum at gmail.com Sun Jun 24 12:52:35 2007 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Sun Jun 24 12:52:43 2007 Subject: [Locomotive-users] Uninstall cleanup In-Reply-To: <506CB817-E11A-4B07-BB07-92284B2BE085@gmail.com> References: <506CB817-E11A-4B07-BB07-92284B2BE085@gmail.com> Message-ID: This can happen if somehow the Locomotive terminal environment has been chosen to be the default window settings (Terminal ? Window Settings ? Use Settings as Defaults). To solve this problem, open a Terminal (normally or from Locomotive, doesn't matter) and enter defaults write com.apple.Terminal ExecutionString "" On 6/24/07, V. Lanny Rosicky wrote: > I am trying to unistall Locomotive2. Please advise on hot to get rid > off these environment items, left behid: > > CFLAGS=-I/Applications/Locomotive2/Bundles/ > rmagickRailsMar2007_i386.locobundle/REPLACE_PROCESSOR/include > > CPPFLAGS=-I/Applications/Locomotive2/Bundles/ > rmagickRailsMar2007_i386.locobundle/REPLACE_PROCESSOR/include > > CXXFLAGS=-I/Applications/Locomotive2/Bundles/ > rmagickRailsMar2007_i386.locobundle/REPLACE_PROCESSOR/include > > DYLD_FALLBACK_LIBRARY_PATH=/Applications/Locomotive2/Bundles/ > rmagickRailsMar2007_i386.locobundle/framework/lib:/usr/lib > > GS_LIB=/Applications/Locomotive2/Bundles/ > rmagickRailsMar2007_i386.locobundle/framework/share/ghostscript/8.54/ > lib:/Applications/Locomotive2/Bundles/ > rmagickRailsMar2007_i386.locobundle/framework/share/ghostscript/fonts > > LDFLAGS='-L/Applications/Locomotive2/Bundles/ > rmagickRailsMar2007_i386.locobundle/REPLACE_PROCESSOR/lib - > headerpad_max_install_names' > > MAGICK_CODER_MODULE_PATH=/Applications/Locomotive2/Bundles/ > rmagickRailsMar2007_i386.locobundle/framework/lib/ImageMagick-6.3.3/ > modules-Q16/coders > > MAGICK_CONFIGURE_PATH=/Applications/Locomotive2/Bundles/ > rmagickRailsMar2007_i386.locobundle/framework/lib/ImageMagick-6.3.3/ > config:/Applications/Locomotive2/Bundles/ > rmagickRailsMar2007_i386.locobundle/framework/share/ImageMagick-6.3.3/ > config > > > PATH=/Applications/Locomotive2/Bundles/ > rmagickRailsMar2007_i386.locobundle/framework/bin:/Applications/ > Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/ > sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/lanny/bin: > RUBYLIB=/Applications/Locomotive2/Bundles/ > rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/site_ruby/1.8:/ > Applications/Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/ > framework/lib/ruby/site_ruby/1.8/i686-darwin8.9.1:/Applications/ > Locomotive2/Bundles/rmagickRailsMar2007_i386.locobundle/framework/lib/ > ruby/1.8:/Applications/Locomotive2/Bundles/ > rmagickRailsMar2007_i386.locobundle/framework/lib/ruby/1.8/i686- > darwin8.9.1 > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > From roger at ecstatic.com Thu Jun 28 00:24:43 2007 From: roger at ecstatic.com (Roger Rohrbach) Date: Thu Jun 28 00:24:48 2007 Subject: [Locomotive-users] Re: Locomotive Rails Bundle Errors Message-ID: <416DF638-17C6-400F-833B-BCC47BF75BB1@ecstatic.com> Hi, Paul. This is a reply to a post you made on locomotive-users. (I wasn't subscribed when you posted it (found it in the archives during a Web search), so can't reply in the usual manner.) I had the same problem as you: /usr/bin/ld: can't locate file for: -lfreeimage collect2: ld returned 1 exit status Exiting It seems that ImageScience/FreeImage is only half-assedly there in the Locomotive RMagick bundle. Unfortunately, attachment_fu sees it and think it should use it in preference to RMagick. I explicitly specified the image processor in my has_attachment declarations (:processor => "RMagick") and that fixed the problem. It's probably a good idea to be explicit about this anyway. If you actually want to use ImageScience/FreeImage with Locomotive, this fellow has made it work for him: http:// deadprogrammersociety.blogspot.com/2007/04/getting-your-attachmentfu- back-out-of.html, but he doesn't give details. cheers, Roger -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070628/c06ab107/attachment.htm From ian at ianbrandt.com Thu Jun 28 04:58:23 2007 From: ian at ianbrandt.com (Ian Brandt) Date: Thu Jun 28 04:58:32 2007 Subject: [Locomotive-users] how do I replicate Locomotives terminal environment variable setup for rails? In-Reply-To: References: Message-ID: <2B336DD2-28EC-4E28-A459-312401877F6D@ianbrandt.com> On Jun 3, 2007, at 1:38 PM, Greg Hauptmann wrote: > I'm trying to get an automated iTerm windows setup running, but > need to replicate setting the various Ruby and Rails environment > variables, that Locomotive must set for me normally when I launch a > Terminal from Locomotive. > > Can anyone advise what is the base set of environment variables I > would have to either set, or put in my ~/.profile file, so that > when I launch an iTerm/Terminal I would be able to run Ruby and > Rails commands per normal ( e.g. ruby script/server) A minor caution regarding using the Locomotive generated environment full time in Terminal.app. If you compile other programs from source via the terminal you may find them linking to libraries included in your current bundle: . Ian Brandt http://ianbrandt.com/