From forgue at gmail.com Thu May 4 20:20:48 2006 From: forgue at gmail.com (Aaron Forgue) Date: Thu, 4 May 2006 20:20:48 -0400 Subject: [Instantrails-users] Unable to Create New Rails App Message-ID: <5d5ea83f0605041720hd48aeefvbdc910d585c61ad0@mail.gmail.com> I have installed InstantRails and run through the Getting Started tutorial. Everything seems to work fine until I try to create a new rails app. Here are the steps I am taking: 1 - Start InstantRails (resides in c:\InstantRails) 2 - "I" > Rails Applicaitons > Manage Rails Applications 3 - Click "Create New Rails App (open console window) 4 - Type "rails testapp" 5 - Receive error: ruby: Permission denied -- E:/Dev/RubyDev/InstantRails-Project/InstantRails-win/ InstantRails/ruby/bin/rails (LoadError) Is there something I am doing wrong? Thanks in advance for any help! Aaron From gsinclair at gmail.com Thu May 4 20:46:35 2006 From: gsinclair at gmail.com (Gavin Sinclair) Date: Fri, 5 May 2006 10:46:35 +1000 Subject: [Instantrails-users] Unable to Create New Rails App In-Reply-To: <5d5ea83f0605041720hd48aeefvbdc910d585c61ad0@mail.gmail.com> References: <5d5ea83f0605041720hd48aeefvbdc910d585c61ad0@mail.gmail.com> Message-ID: On 5/5/06, Aaron Forgue wrote (snipped big-time): > > 1 - Start InstantRails (resides in c:\InstantRails) > [...] > > ruby: Permission denied -- E:/Dev/RubyDev/InstantRails-Project/InstantRails-win/ > InstantRails/ruby/bin/rails (LoadError) That's a really ugly path; where did it come from? Shouldn't it be something like C:\InstantRails\ruby\bin\rails, given where you have InstantRails installed? My suggestion: make sure you can open a DOS box, type "ruby -v" or "rails toy-project" and not get an error. That means setting your PATH environment variable appropriately. Any follow-up questions welcome, of course. Cheers, Gavin From forgue at gmail.com Thu May 4 20:56:23 2006 From: forgue at gmail.com (Aaron Forgue) Date: Thu, 4 May 2006 20:56:23 -0400 Subject: [Instantrails-users] Unable to Create New Rails App In-Reply-To: References: <5d5ea83f0605041720hd48aeefvbdc910d585c61ad0@mail.gmail.com> Message-ID: <5d5ea83f0605041756t1b022805v6311a56436bb44@mail.gmail.com> I have no idea where that path came from - but E: is one of my cd drives. I did all of this out of the box without any tweaking. When you say "open a DOS box", do you mean through InstantRails, or just Run > "cmd" ? If I do it through InstantRails, "ruby -v" gives me "ruby 1.8.4 (2005-12-24) [i386-mswin32]" (rails toy-project gives me the original error). If I do it through Run > cmd, "ruby -v" returns an error saying 'ruby' is unrecognized. Aaron On 5/4/06, Gavin Sinclair wrote: > On 5/5/06, Aaron Forgue wrote (snipped big-time): > > > > 1 - Start InstantRails (resides in c:\InstantRails) > > [...] > > > > ruby: Permission denied -- E:/Dev/RubyDev/InstantRails-Project/InstantRails-win/ > > InstantRails/ruby/bin/rails (LoadError) > > That's a really ugly path; where did it come from? > > Shouldn't it be something like C:\InstantRails\ruby\bin\rails, given > where you have InstantRails installed? > > My suggestion: make sure you can open a DOS box, type "ruby -v" or > "rails toy-project" and not get an error. That means setting your > PATH environment variable appropriately. > > Any follow-up questions welcome, of course. > > Cheers, > Gavin > > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users > From gsinclair at gmail.com Thu May 4 21:04:53 2006 From: gsinclair at gmail.com (Gavin Sinclair) Date: Fri, 5 May 2006 11:04:53 +1000 Subject: [Instantrails-users] Unable to Create New Rails App In-Reply-To: <5d5ea83f0605041756t1b022805v6311a56436bb44@mail.gmail.com> References: <5d5ea83f0605041720hd48aeefvbdc910d585c61ad0@mail.gmail.com> <5d5ea83f0605041756t1b022805v6311a56436bb44@mail.gmail.com> Message-ID: On 5/5/06, Aaron Forgue wrote: > I have no idea where that path came from - but E: is one of my cd drives. So you have a CD in the drive? > I did all of this out of the box without any tweaking. When you say > "open a DOS box", do you mean through InstantRails, or just Run > > "cmd" ? Run > "cmd" At the DOS box, type "path" and see what it gives you. In Control Panel > System > Advanced > Environment Variables, tweak your path. You want "C:\InstantRails\ruby\bin" at the *beginning* of the path. BTW, check in Explorer that I've got the right directory first. The directory should have files like ruby.bat, irb.bat, and so on. This may not solve all the problems, but it will put your InstantRails system on a stable footing :) Cheers, Gavin From curt.hibbs at gmail.com Thu May 4 21:42:47 2006 From: curt.hibbs at gmail.com (Curt Hibbs) Date: Thu, 4 May 2006 20:42:47 -0500 Subject: [Instantrails-users] Unable to Create New Rails App In-Reply-To: References: <5d5ea83f0605041720hd48aeefvbdc910d585c61ad0@mail.gmail.com> <5d5ea83f0605041756t1b022805v6311a56436bb44@mail.gmail.com> Message-ID: <31d15f490605041842s20b64599vec45b9fbe5e0b726@mail.gmail.com> I know where that path came from. That's the path on my machine where I do the Instant Rails development. It should have been updated to your installation path when you started up Instant Rails for the first time. Let me try to duplicate this and I'll post back shortly. Curt On 5/4/06, Gavin Sinclair wrote: > > On 5/5/06, Aaron Forgue wrote: > > I have no idea where that path came from - but E: is one of my cd > drives. > > So you have a CD in the drive? > > > I did all of this out of the box without any tweaking. When you say > > "open a DOS box", do you mean through InstantRails, or just Run > > > "cmd" ? > > Run > "cmd" > > At the DOS box, type "path" and see what it gives you. > > In Control Panel > System > Advanced > Environment Variables, tweak > your path. You want "C:\InstantRails\ruby\bin" at the *beginning* of > the path. > > BTW, check in Explorer that I've got the right directory first. The > directory should have files like ruby.bat, irb.bat, and so on. > > This may not solve all the problems, but it will put your InstantRails > system on a stable footing :) > > Cheers, > Gavin > > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060504/3428c742/attachment.htm From curt.hibbs at gmail.com Thu May 4 23:55:56 2006 From: curt.hibbs at gmail.com (Curt Hibbs) Date: Thu, 4 May 2006 22:55:56 -0500 Subject: [Instantrails-users] Unable to Create New Rails App In-Reply-To: <31d15f490605041842s20b64599vec45b9fbe5e0b726@mail.gmail.com> References: <5d5ea83f0605041720hd48aeefvbdc910d585c61ad0@mail.gmail.com> <5d5ea83f0605041756t1b022805v6311a56436bb44@mail.gmail.com> <31d15f490605041842s20b64599vec45b9fbe5e0b726@mail.gmail.com> Message-ID: <31d15f490605042055u45f2178ak84c6f9227208e7e2@mail.gmail.com> Its working fine here. Something must have gone wrong when Instant Rails was doing its path relocation. Let's try forcing Instant Rails to do the relocation again. The easiest way to do that is to rename the Instant Rails installaton directory (you can rename it back later), and then start up Instant Rails. Be sure to answer "yes" when it asks if you want to regenerate the configuration files. Now edit \ruby\bin\rails.cmd and verify that it contains the correct path. Curt On 5/4/06, Curt Hibbs wrote: > > I know where that path came from. That's the path on my machine where I do > the Instant Rails development. It should have been updated to your > installation path when you started up Instant Rails for the first time. > > Let me try to duplicate this and I'll post back shortly. > > Curt > > On 5/4/06, Gavin Sinclair wrote: > > > On 5/5/06, Aaron Forgue wrote: > > > I have no idea where that path came from - but E: is one of my cd > > drives. > > > > So you have a CD in the drive? > > > > > I did all of this out of the box without any tweaking. When you say > > > "open a DOS box", do you mean through InstantRails, or just Run > > > > "cmd" ? > > > > Run > "cmd" > > > > At the DOS box, type "path" and see what it gives you. > > > > In Control Panel > System > Advanced > Environment Variables, tweak > > your path. You want "C:\InstantRails\ruby\bin" at the *beginning* of > > the path. > > > > BTW, check in Explorer that I've got the right directory first. The > > directory should have files like ruby.bat, irb.bat, and so on. > > > > This may not solve all the problems, but it will put your InstantRails > > system on a stable footing :) > > > > Cheers, > > Gavin > > > > _______________________________________________ > > Instantrails-users mailing list > > Instantrails-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/instantrails-users > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060504/b4e75957/attachment-0001.htm From forgue at gmail.com Sat May 6 12:43:46 2006 From: forgue at gmail.com (Aaron Forgue) Date: Sat, 6 May 2006 12:43:46 -0400 Subject: [Instantrails-users] Unable to Create New Rails App In-Reply-To: <31d15f490605042055u45f2178ak84c6f9227208e7e2@mail.gmail.com> References: <5d5ea83f0605041720hd48aeefvbdc910d585c61ad0@mail.gmail.com> <5d5ea83f0605041756t1b022805v6311a56436bb44@mail.gmail.com> <31d15f490605041842s20b64599vec45b9fbe5e0b726@mail.gmail.com> <31d15f490605042055u45f2178ak84c6f9227208e7e2@mail.gmail.com> Message-ID: <5d5ea83f0605060943t3a880948ke1b53ef92ee10c71@mail.gmail.com> Worked like a charm. Thanks guys! On 5/4/06, Curt Hibbs wrote: > Its working fine here. Something must have gone wrong when Instant Rails was > doing its path relocation. Let's try forcing Instant Rails to do the > relocation again. > > The easiest way to do that is to rename the Instant Rails installaton > directory (you can rename it back later), and then start up Instant Rails. > Be sure to answer "yes" when it asks if you want to regenerate the > configuration files. > > Now edit \ruby\bin\rails.cmd and verify > that it contains the correct path. > > Curt > > > > On 5/4/06, Curt Hibbs < curt.hibbs at gmail.com> wrote: > > > > I know where that path came from. That's the path on my machine where I do > the Instant Rails development. It should have been updated to your > installation path when you started up Instant Rails for the first time. > > > > Let me try to duplicate this and I'll post back shortly. > > > > > > Curt > > > > > > > > > > On 5/4/06, Gavin Sinclair wrote: > > > > > On 5/5/06, Aaron Forgue wrote: > > > > I have no idea where that path came from - but E: is one of my cd > drives. > > > > > > So you have a CD in the drive? > > > > > > > I did all of this out of the box without any tweaking. When you say > > > > "open a DOS box", do you mean through InstantRails, or just Run > > > > > "cmd" ? > > > > > > Run > "cmd" > > > > > > At the DOS box, type "path" and see what it gives you. > > > > > > In Control Panel > System > Advanced > Environment Variables, tweak > > > your path. You want "C:\InstantRails\ruby\bin" at the *beginning* of > > > the path. > > > > > > BTW, check in Explorer that I've got the right directory first. The > > > directory should have files like ruby.bat, irb.bat, and so on. > > > > > > This may not solve all the problems, but it will put your InstantRails > > > system on a stable footing :) > > > > > > Cheers, > > > Gavin > > > > > > _______________________________________________ > > > Instantrails-users mailing list > > > Instantrails-users at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/instantrails-users > > > > > > > > > > > > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users > > From networks1 at cox.net Wed May 10 17:21:25 2006 From: networks1 at cox.net (s) Date: Wed, 10 May 2006 14:21:25 -0700 Subject: [Instantrails-users] Instaling InstantRails w/ existing MySQL Message-ID: <000c01c67477$b15892a0$6a01a8c0@homey> I have an existing installation of MySQL on my system. The InstantRails docs say it is self-contained and includes MySQL. When I start InstantRails.exe it complains that the MySQL port is already occupied by the MySQL server daemon. Can/should I reconfigure InstantRails straightforwardly to work with the existing MySQL installation? If not, can I reconfigure the InstantRails version to work on another port so it doesn't interfere with the existing installation? I didn't see anything in the FAQs about this so your advice appreciated. Many thanks in advance.. Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060510/98cc30de/attachment.htm From larry at tellinkltd.com Wed May 10 17:54:09 2006 From: larry at tellinkltd.com (Larry Kelly) Date: Wed, 10 May 2006 14:54:09 -0700 Subject: [Instantrails-users] Instaling InstantRails w/ existing MySQL In-Reply-To: <000c01c67477$b15892a0$6a01a8c0@homey> References: <000c01c67477$b15892a0$6a01a8c0@homey> Message-ID: <871b07a70605101454s1461cc54o973af1dfd0be76ce@mail.gmail.com> I have a similar arrangement. The database I want to work with is already installed. I just let the InstantRails MySQL server fail on startup. Then connect to the existing MySQL database. works for me :) -Larry On 5/10/06, s wrote: > > I have an existing installation of MySQL on my system. The InstantRails > docs say it is self-contained and includes MySQL. When I start > InstantRails.exe it complains that the MySQL port is already occupied by > the MySQL server daemon. Can/should I reconfigure InstantRails > straightforwardly to work with the existing MySQL installation? If not, can > I reconfigure the InstantRails version to work on another port so it doesn't > interfere with the existing installation? I didn't see anything in the FAQs > about this so your advice appreciated. > > > > Many thanks in advance?. > > > > Steve > > > > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users > > -- Best Regards, -Larry "Work, work, work...there is no satisfactory alternative." --- E.Taft Benson -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060510/3debb949/attachment.htm From larrytheliquid at gmail.com Sun May 14 21:24:43 2006 From: larrytheliquid at gmail.com (Larrytheliquid) Date: Sun, 14 May 2006 21:24:43 -0400 Subject: [Instantrails-users] Radrails Message-ID: I am trying to set up and use radrails according to this: http://instantrails.rubyforge.org/wiki/wiki.pl?RadRails I have tried the following: PATH ${path}\ruby\bin;${path}\mysql\bin;C:\InstantRails\radrails;%PATH% PATH ${path}\ruby\bin;${path}\mysql\bin;C:\InstantRails\radrails\radrails.exe;%PATH% Typing "radrails" or "radrails.exe" from the diretory of rails applications, as well as anywhere else, does not work except for when I navigate to that folder specifically. Thanks for any help! -- Respectfully: Larry -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060514/a3d7a2ee/attachment.htm From curt.hibbs at gmail.com Sun May 14 22:34:26 2006 From: curt.hibbs at gmail.com (Curt Hibbs) Date: Sun, 14 May 2006 21:34:26 -0500 Subject: [Instantrails-users] Radrails In-Reply-To: References: Message-ID: <31d15f490605141934t411a2474w96165c6370f9c882@mail.gmail.com> On 5/14/06, Larrytheliquid wrote: > > I am trying to set up and use radrails according to this: > http://instantrails.rubyforge.org/wiki/wiki.pl?RadRails > > I have tried the following: > PATH ${path}\ruby\bin;${path}\mysql\bin;C:\InstantRails\radrails;%PATH% > PATH > ${path}\ruby\bin;${path}\mysql\bin;C:\InstantRails\radrails\radrails.exe;%PATH% > > Typing "radrails" or "radrails.exe" from the diretory of rails > applications, as well as anywhere else, does not work except for when I > navigate to that folder specifically. > > Thanks for any help! > -- > Respectfully: > Larry > I think there's a step missing from the instructions on the wiki. After you update the use_ruby.cmd template file to include RadRails in the path, you have to force Instant Rails to update all configuration files (otherwise your change will have no effect). There are a couple ways to do this, but the easiest is to rename the Instant Rails directory and then start up Instant Rails. IR will detact the changed directory and update all the configuration files with the new path (you can then change back to your original path name if you prefer). Curt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060514/15483afb/attachment.htm From larrytheliquid at gmail.com Mon May 15 08:15:31 2006 From: larrytheliquid at gmail.com (Larrytheliquid) Date: Mon, 15 May 2006 08:15:31 -0400 Subject: [Instantrails-users] Radrails In-Reply-To: <31d15f490605141934t411a2474w96165c6370f9c882@mail.gmail.com> References: <31d15f490605141934t411a2474w96165c6370f9c882@mail.gmail.com> Message-ID: Thanks, that works. I can't import cookbook though because it's not an eclipse project: File>Import>General>Existing Projects into Workspace There is a video on how to do it, but it is down right now. I think that is worth being in the wiki too, and thanks again. http://www.radrails.org/blog/show/34 On 5/14/06, Curt Hibbs wrote: > > > > On 5/14/06, Larrytheliquid wrote: > > > > I am trying to set up and use radrails according to this: > > http://instantrails.rubyforge.org/wiki/wiki.pl?RadRails > > > > I have tried the following: > > PATH ${path}\ruby\bin;${path}\mysql\bin;C:\InstantRails\radrails;%PATH% > > PATH > > ${path}\ruby\bin;${path}\mysql\bin;C:\InstantRails\radrails\radrails.exe;%PATH% > > > > Typing "radrails" or "radrails.exe" from the diretory of rails > > applications, as well as anywhere else, does not work except for when I > > navigate to that folder specifically. > > > > Thanks for any help! > > -- > > Respectfully: > > Larry > > > > I think there's a step missing from the instructions on the wiki. After > you update the use_ruby.cmd template file to include RadRails in the path, > you have to force Instant Rails to update all configuration files (otherwise > your change will have no effect). > > There are a couple ways to do this, but the easiest is to rename the > Instant Rails directory and then start up Instant Rails. IR will detact the > changed directory and update all the configuration files with the new path > (you can then change back to your original path name if you prefer). > > Curt > > > > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users > > -- Respectfully: Larry Diehl -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060515/3c1a57eb/attachment-0001.htm From mortonda at dgrmm.net Mon May 15 09:09:46 2006 From: mortonda at dgrmm.net (David Morton) Date: Mon, 15 May 2006 08:09:46 -0500 Subject: [Instantrails-users] Radrails In-Reply-To: References: <31d15f490605141934t411a2474w96165c6370f9c882@mail.gmail.com> Message-ID: <44687D9A.20106@dgrmm.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Larrytheliquid wrote: > Thanks, that works. I can't import cookbook though because it's not an > eclipse project: create a new project, and set the directory to the cookbook... uncheck the box to create a rails structure. It pull all the files in real nice. - -- David Morton Maia Mailguard - http://www.maiamailguard.com Morton Software Design and Consulting - http://www.dgrmm.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEaH2aSIxC85HZHLMRAmkbAJ4tX8iWfqm1T74wqq7VziLk2OayNQCePp+s 63uqHZM7rVJvEqgh5DHGuhQ= =XCMy -----END PGP SIGNATURE----- From curt.hibbs at gmail.com Mon May 15 09:57:27 2006 From: curt.hibbs at gmail.com (Curt Hibbs) Date: Mon, 15 May 2006 08:57:27 -0500 Subject: [Instantrails-users] Radrails In-Reply-To: <44687D9A.20106@dgrmm.net> References: <31d15f490605141934t411a2474w96165c6370f9c882@mail.gmail.com> <44687D9A.20106@dgrmm.net> Message-ID: <31d15f490605150657p5a5ee079v5e4c22e332728ae5@mail.gmail.com> On 5/15/06, David Morton wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Larrytheliquid wrote: > > Thanks, that works. I can't import cookbook though because it's not an > > eclipse project: > > create a new project, and set the > directory to the cookbook... uncheck the box to create a rails > structure. It > pull all the files in real nice. > Can you add that little piece of wisdom to the wiki page? That way we (hopefully) won't have to keep answering the same question over and over. Thanks, Curt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060515/4a009706/attachment.htm From pa_inbox at yahoo.com Mon May 15 15:48:21 2006 From: pa_inbox at yahoo.com (Pankaj Agarwal) Date: Mon, 15 May 2006 12:48:21 -0700 Subject: [Instantrails-users] Error creating controllers in InstantRails-1.3a Message-ID: <3e8856a10605151248n7f7969aekacb0da2b2ea27deb@mail.gmail.com> Hi, I was able to successfully Install InstantRails-1.3a and run cookbook throgh Apache and WEBrick , however when I try to create my own app. cookbook2 following tutorial ( http://instantrails.rubyforge.org/tutorial/index.html) , it gives me below error whle creating MyTest controller Cannot find gem for Rails =1.1.2: Install the missing gem with 'gem install -v=1.1.2 rails', or change environment.rb to define RAILS_GEM_VERSION with your desired version. I looked at environment.rb of cookbook and it does NOT define RAILS_GEM_VERSION, however cookbook2's environment.rb DOES define it, when I make it same as cookbook's ( i.e. comment it ) then I get below error E:\InstantRails\rails_apps\cookbook2>ruby script\generate controller MyTest E:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:204:in `report_activate_error': Could not find RubyGem rails (> 0.0.0) (Gem::LoadError) from E:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:141:in `activate' from E:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:37:in `require_gem_with_ options' from E:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:31:in `require_gem' from ./script/../config/boot.rb:38 from E:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `re quire' from script/generate:2 What am I missing here ?? -TIA Pankaj -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060515/bdd98ae0/attachment.htm From curt.hibbs at gmail.com Mon May 15 15:59:43 2006 From: curt.hibbs at gmail.com (Curt Hibbs) Date: Mon, 15 May 2006 14:59:43 -0500 Subject: [Instantrails-users] Error creating controllers in InstantRails-1.3a In-Reply-To: <3e8856a10605151248n7f7969aekacb0da2b2ea27deb@mail.gmail.com> References: <3e8856a10605151248n7f7969aekacb0da2b2ea27deb@mail.gmail.com> Message-ID: <31d15f490605151259v26becc74ld9da4e92ecf141f@mail.gmail.com> On 5/15/06, Pankaj Agarwal wrote: > > Hi, > I was able to successfully Install InstantRails-1.3a and run cookbook > throgh Apache and WEBrick , however when I try to create my own app. > cookbook2 following tutorial (http://instantrails.rubyforge.org/tutorial/index.html) > , it gives me below error whle creating MyTest controller > > Cannot find gem for Rails =1.1.2: > Install the missing gem with 'gem install -v=1.1.2 rails', or > change environment.rb to define RAILS_GEM_VERSION with your desired > version. > > I looked at environment.rb of cookbook and it does NOT define > RAILS_GEM_VERSION, however cookbook2's environment.rb DOES define it, when > I make it same as cookbook's ( i.e. comment it ) then I get below error > > E:\InstantRails\rails_apps\cookbook2>ruby script\generate controller > MyTest > E:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:204:in `report_activate_error': > Could > not find RubyGem rails (> 0.0.0) (Gem::LoadError) > from E:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:141:in `activate' > from E:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:37:in > `require_gem_with_ > options' > from E:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:31:in > `require_gem' > from ./script/../config/boot.rb:38 > from > E:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `re > quire' > from script/generate:2 > > > What am I missing here ?? > -TIA > Pankaj > Sounds like something is messed up in your Instant Rails tree. I would unzip a fresh copy to a *new* directory and try it there. I just did that myself to try to reproduce your problem, but it worked just fine. Curt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060515/fa83a28c/attachment.htm From pa_inbox at yahoo.com Mon May 15 16:57:50 2006 From: pa_inbox at yahoo.com (Pankaj Agarwal) Date: Mon, 15 May 2006 13:57:50 -0700 Subject: [Instantrails-users] Error creating controllers in InstantRails-1.3a In-Reply-To: <31d15f490605151259v26becc74ld9da4e92ecf141f@mail.gmail.com> References: <3e8856a10605151248n7f7969aekacb0da2b2ea27deb@mail.gmail.com> <31d15f490605151259v26becc74ld9da4e92ecf141f@mail.gmail.com> Message-ID: <3e8856a10605151357h41875e70qb04d25f10cffb5f4@mail.gmail.com> Thanks..It works... , I installed One click Ruby Installer after Installing InstantRails may be that screwed things, dont know for sure though. -Pankaj On 5/15/06, Curt Hibbs wrote: > > On 5/15/06, Pankaj Agarwal wrote: > > > > Hi, > > I was able to successfully Install InstantRails-1.3a and run cookbook > > throgh Apache and WEBrick , however when I try to create my own app. > > cookbook2 following tutorial (http://instantrails.rubyforge.org/tutorial/index.html) > > , it gives me below error whle creating MyTest controller > > > > Cannot find gem for Rails =1.1.2: > > Install the missing gem with 'gem install -v=1.1.2 rails', or > > change environment.rb to define RAILS_GEM_VERSION with your desired > > version. > > > > I looked at environment.rb of cookbook and it does NOT define > > RAILS_GEM_VERSION, however cookbook2's environment.rb DOES define it, > > when I make it same as cookbook's ( i.e. comment it ) then I get below > > error > > > > E:\InstantRails\rails_apps\cookbook2>ruby script\generate controller > > MyTest > > E:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:204:in > > `report_activate_error': Could > > not find RubyGem rails (> 0.0.0) (Gem::LoadError) > > from E:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:141:in > > `activate' > > from E:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:37:in > > `require_gem_with_ > > options' > > from E:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:31:in > > `require_gem' > > from ./script/../config/boot.rb:38 > > from > > E:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `re > > quire' > > from script/generate:2 > > > > > > What am I missing here ?? > > -TIA > > Pankaj > > > > Sounds like something is messed up in your Instant Rails tree. > > I would unzip a fresh copy to a *new* directory and try it there. I just > did that myself to try to reproduce your problem, but it worked just fine. > > Curt > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060515/0b59519a/attachment.htm From annapenn at comcast.net Fri May 19 19:25:46 2006 From: annapenn at comcast.net (Anna Penney) Date: Fri, 19 May 2006 16:25:46 -0700 Subject: [Instantrails-users] completing & verifying Rails setup Message-ID: <000f01c67b9b$8eb63150$6401a8c0@BANANA> I followed the steps outlined in the tutorial - pretty much steps 1-5. When I tried to run the cookbook & started WEBrick, the command prompt window looked identical to that of figure 12...yet, when I accessed http://localhost:3000/recipe/list, I got this error: Errno::EBADF in RecipeController#list... Bad file descriptor - connect(2) What does this mean? Any assitance would be greatly appreciated! eyewire -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060519/d00d5895/attachment.htm From bill.walton at charter.net Sat May 20 09:48:43 2006 From: bill.walton at charter.net (Bill Walton) Date: Sat, 20 May 2006 08:48:43 -0500 Subject: [Instantrails-users] completing & verifying Rails setup References: <000f01c67b9b$8eb63150$6401a8c0@BANANA> Message-ID: <178a01c67c14$1c13fd20$6401a8c0@Presario> Hi Anna, I've never seen that error. I'm assuming this is displayed in your browser. Is that right? Does the response contain any more information? Are you able to connect to the database using MySQL-Front? Any other information would be helpful. Best regards, Bill ----- Original Message ----- From: Anna Penney To: instantrails-users at rubyforge.org Sent: Friday, May 19, 2006 6:25 PM Subject: [Norton AntiSpam] [Instantrails-users] completing & verifying Rails setup I followed the steps outlined in the tutorial - pretty much steps 1-5. When I tried to run the cookbook & started WEBrick, the command prompt window looked identical to that of figure 12...yet, when I accessed http://localhost:3000/recipe/list, I got this error: Errno::EBADF in RecipeController#list... Bad file descriptor - connect(2) What does this mean? Any assitance would be greatly appreciated! eyewire ------------------------------------------------------------------------------ _______________________________________________ Instantrails-users mailing list Instantrails-users at rubyforge.org http://rubyforge.org/mailman/listinfo/instantrails-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060520/73eb407c/attachment-0001.htm From mortonda at dgrmm.net Sat May 20 09:57:32 2006 From: mortonda at dgrmm.net (David Morton) Date: Sat, 20 May 2006 08:57:32 -0500 Subject: [Instantrails-users] completing & verifying Rails setup In-Reply-To: <000f01c67b9b$8eb63150$6401a8c0@BANANA> References: <000f01c67b9b$8eb63150$6401a8c0@BANANA> Message-ID: <446F204C.7030803@dgrmm.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Anna Penney wrote: > http://localhost:3000/recipe/list, I got this error: Errno::EBADF in > RecipeController#list... Bad file descriptor - connect(2) > > What does this mean? Any assitance would be greatly appreciated! What version of windows are you using? - -- David Morton Maia Mailguard - http://www.maiamailguard.com Morton Software Design and Consulting - http://www.dgrmm.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEbyBLSIxC85HZHLMRAirBAJ9T0m3yluRg+hzF42WZRrF54rc7HgCfdX+Y 0NTf7AN6KsYDXQ0zHtsAh0w= =u3wq -----END PGP SIGNATURE----- From annapenn at comcast.net Sat May 20 11:10:35 2006 From: annapenn at comcast.net (Anna Penney) Date: Sat, 20 May 2006 08:10:35 -0700 Subject: [Instantrails-users] completing & verifying Rails setup References: <000f01c67b9b$8eb63150$6401a8c0@BANANA> <178a01c67c14$1c13fd20$6401a8c0@Presario> Message-ID: <001701c67c1f$8d036c40$6401a8c0@BANANA> Bill, I tried it again this morning and it worked. What I had done was clicked on the http://localhost:3000/recipe/list link on the completing_and_verifying.html page. I typed it in this time and was able to get the Online Cookbook! Thanks, Anna ----- Original Message ----- From: Bill Walton To: instantrails-users at rubyforge.org Sent: Saturday, May 20, 2006 6:48 AM Subject: Re: [Instantrails-users] completing & verifying Rails setup Hi Anna, I've never seen that error. I'm assuming this is displayed in your browser. Is that right? Does the response contain any more information? Are you able to connect to the database using MySQL-Front? Any other information would be helpful. Best regards, Bill ----- Original Message ----- From: Anna Penney To: instantrails-users at rubyforge.org Sent: Friday, May 19, 2006 6:25 PM Subject: [Norton AntiSpam] [Instantrails-users] completing & verifying Rails setup I followed the steps outlined in the tutorial - pretty much steps 1-5. When I tried to run the cookbook & started WEBrick, the command prompt window looked identical to that of figure 12...yet, when I accessed http://localhost:3000/recipe/list, I got this error: Errno::EBADF in RecipeController#list... Bad file descriptor - connect(2) What does this mean? Any assitance would be greatly appreciated! eyewire ---------------------------------------------------------------------------- _______________________________________________ Instantrails-users mailing list Instantrails-users at rubyforge.org http://rubyforge.org/mailman/listinfo/instantrails-users ------------------------------------------------------------------------------ _______________________________________________ Instantrails-users mailing list Instantrails-users at rubyforge.org http://rubyforge.org/mailman/listinfo/instantrails-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060520/755210b1/attachment.htm From annapenn at comcast.net Sat May 20 11:12:05 2006 From: annapenn at comcast.net (Anna Penney) Date: Sat, 20 May 2006 08:12:05 -0700 Subject: [Instantrails-users] completing & verifying Rails setup References: <000f01c67b9b$8eb63150$6401a8c0@BANANA> <446F204C.7030803@dgrmm.net> Message-ID: <001c01c67c1f$c17e5430$6401a8c0@BANANA> Here's a copy of my explanation that I sent Bill: I tried it again this morning and it worked. What I had done was clicked on the http://localhost:3000/recipe/list link on the completing_and_verifying.html page. I typed it in this time and was able to get the Online Cookbook! Thanks, Anna ----- Original Message ----- From: "David Morton" To: Sent: Saturday, May 20, 2006 6:57 AM Subject: Re: [Instantrails-users] completing & verifying Rails setup > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Anna Penney wrote: > >> http://localhost:3000/recipe/list, I got this error: Errno::EBADF in >> RecipeController#list... Bad file descriptor - connect(2) >> >> What does this mean? Any assitance would be greatly appreciated! > > What version of windows are you using? > > > - -- > David Morton > Maia Mailguard - http://www.maiamailguard.com > Morton Software Design and Consulting - http://www.dgrmm.net > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFEbyBLSIxC85HZHLMRAirBAJ9T0m3yluRg+hzF42WZRrF54rc7HgCfdX+Y > 0NTf7AN6KsYDXQ0zHtsAh0w= > =u3wq > -----END PGP SIGNATURE----- > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users From curt.hibbs at gmail.com Sat May 20 11:13:29 2006 From: curt.hibbs at gmail.com (Curt Hibbs) Date: Sat, 20 May 2006 10:13:29 -0500 Subject: [Instantrails-users] completing & verifying Rails setup In-Reply-To: <446F204C.7030803@dgrmm.net> References: <000f01c67b9b$8eb63150$6401a8c0@BANANA> <446F204C.7030803@dgrmm.net> Message-ID: <31d15f490605200813u52cbe7c5web854dcb6b8973aa@mail.gmail.com> I've never seen this either, but I did a google search for it and it appears to have something to do with an unexpectedly dropped socket connection. But I couldn't find anything further (in the short amount of time that I had to spend on it), especially what could cause the dropped socket connection. I do recall Zed Shaw saying the the pure Ruby MySQL adapter caused dropped database connections (which is a socket connection) for him under high loads. Although, this case is hardly a "high load". As an experiment, you could try Instant Rails 1.3 (instead of 1.3a), because the uses the C based MySQL adapter instead of the pure Ruby MySQL adapter. The C based adapter caused seg faults on Windows 2000, but was OK on Windows XP. Anyway, its possible that this could fix your problem. Curt On 5/20/06, David Morton wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Anna Penney wrote: > > > http://localhost:3000/recipe/list, I got this error: Errno::EBADF in > > RecipeController#list... Bad file descriptor - connect(2) > > > > What does this mean? Any assitance would be greatly appreciated! > > What version of windows are you using? > > > - -- > David Morton > Maia Mailguard - http://www.maiamailguard.com > Morton Software Design and Consulting - http://www.dgrmm.net > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFEbyBLSIxC85HZHLMRAirBAJ9T0m3yluRg+hzF42WZRrF54rc7HgCfdX+Y > 0NTf7AN6KsYDXQ0zHtsAh0w= > =u3wq > -----END PGP SIGNATURE----- > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060520/ba629614/attachment.htm From curt.hibbs at gmail.com Sat May 20 11:14:37 2006 From: curt.hibbs at gmail.com (Curt Hibbs) Date: Sat, 20 May 2006 10:14:37 -0500 Subject: [Instantrails-users] completing & verifying Rails setup In-Reply-To: <31d15f490605200813u52cbe7c5web854dcb6b8973aa@mail.gmail.com> References: <000f01c67b9b$8eb63150$6401a8c0@BANANA> <446F204C.7030803@dgrmm.net> <31d15f490605200813u52cbe7c5web854dcb6b8973aa@mail.gmail.com> Message-ID: <31d15f490605200814k586a7635n4b3c95f3deb62783@mail.gmail.com> Never mind, I see you got it working. Have fun! Curt On 5/20/06, Curt Hibbs wrote: > > I've never seen this either, but I did a google search for it and it > appears to have something to do with an unexpectedly dropped socket > connection. But I couldn't find anything further (in the short amount of > time that I had to spend on it), especially what could cause the dropped > socket connection. > > I do recall Zed Shaw saying the the pure Ruby MySQL adapter caused dropped > database connections (which is a socket connection) for him under high > loads. Although, this case is hardly a "high load". > > As an experiment, you could try Instant Rails 1.3 (instead of 1.3a), > because the uses the C based MySQL adapter instead of the pure Ruby MySQL > adapter. The C based adapter caused seg faults on Windows 2000, but was OK > on Windows XP. Anyway, its possible that this could fix your problem. > > Curt > > > On 5/20/06, David Morton wrote: > > > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Anna Penney wrote: > > > > > http://localhost:3000/recipe/list, I got this error: Errno::EBADF in > > > RecipeController#list... Bad file descriptor - connect(2) > > > > > > What does this mean? Any assitance would be greatly appreciated! > > > > What version of windows are you using? > > > > > > - -- > > David Morton > > Maia Mailguard - http://www.maiamailguard.com > > Morton Software Design and Consulting - http://www.dgrmm.net > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.4.2 (MingW32) > > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > > > iD8DBQFEbyBLSIxC85HZHLMRAirBAJ9T0m3yluRg+hzF42WZRrF54rc7HgCfdX+Y > > 0NTf7AN6KsYDXQ0zHtsAh0w= > > =u3wq > > -----END PGP SIGNATURE----- > > _______________________________________________ > > Instantrails-users mailing list > > Instantrails-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/instantrails-users > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060520/3d3f7955/attachment.htm From codejoy at gmail.com Sat May 20 16:36:12 2006 From: codejoy at gmail.com (Shane Thomas) Date: Sat, 20 May 2006 14:36:12 -0600 Subject: [Instantrails-users] RMagick gem problem using InstantRails and possibly WEBrick... Message-ID: <67bcabf80605201336n7b21cde6n20c8e133cbbb9ac9@mail.gmail.com> Hello, I am new to rails but have been having fun so far. Until now. I am sure this is just my inexperience but I have the RMagick gem (ruby gem for using imagemagick manipulation) installed on my machine that I would like to then use in my rails app. I first installed it and tried it out, and it didnt do anything for me, took me a while to realize I needed the windows RUBYOPT rubygems environment variable set. After that, I could finally call stuff like: >ruby myLittleTestProg.rb which used a require 'RMagick' and it would run fine. So I think, I tested my little script out, I want to do it on rails and call it from my web app. I build a skeleton web app, and goto the config/environment.rb file and say: require 'RMagick' adding this line, kills the skeleton app, what ran fine with webrick now gives me a strange error that I wll post here. (and yes after changing the environment.rb file I did relaunch the server). I installed the flickr gem as well, and this runs fine, I can easily say in the environment.rb file: require 'flickr' and it works, it is just when I require 'RMagick' from that environment.rbfile in my rails app it crashes with this error in the index.rhtml: I am looking for any suggestions, cause I am totally lost. Not sure why the RMagick include runs fine when I just use it from a ruby .rb file, but when I try to require it from my rails app, it doesnt work...this is locally using WEBrick (i tried my rails host online, and it seems that the require RMagick works there, I just need to get it working locally for development and testing purposes..) Thanks for anyone with any help or suggestions... -Shane error is as follows when require 'RMagick' is added to environment.rb of a skeleton rails app: SyntaxError in Warhol#index Showing *app/views/warhol/index.rhtml* where line *#2* raised: compile error ./script/../config/../app/views/warhol/index.rhtml:2: parse error, unexpected $, expecting kEND Extracted source (around line *#2*): 1: <%= form_remote_tag :url => {:action => 'search'}, :update => 'photos' %> 2:
3: 4: <%= text_field_tag 'tags' %> 5: <%= submit_tag 'Find' %> Trace of template inclusion: /app/views/warhol/index.rhtml RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace| Full Trace #{RAILS_ROOT}/app/views/warhol/index.rhtml:2:in `compile_template' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:305:in `compile_and_render_template' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:290:in `render_template' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:249:in `render_file' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:699:in `render_file' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:621:in `render_with_no_layout' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/layout.rb:243:in `render_without_benchmark' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:53:in `render' C:/InstantRails-1.0/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:53:in `render' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:913:in `perform_action_without_filters' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' C:/InstantRails-1.0/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/rescue.rb:82:in `perform_action' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:381:in `process_without_filters' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:377:in `process_without_session_management_support' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/session_management.rb:117:in `process' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:38:in `dispatch' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:115:in `handle_dispatch' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:81:in `service' C:/InstantRails-1.0/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' C:/InstantRails-1.0/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' C:/InstantRails-1.0/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' C:/InstantRails-1.0/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' C:/InstantRails-1.0/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start' C:/InstantRails-1.0/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start' C:/InstantRails-1.0/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start' C:/InstantRails-1.0/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:67:in `dispatch' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/servers/webrick.rb:59 C:/InstantRails-1.0/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/server.rb:30 C:/InstantRails-1.0/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require' script/server:3 #{RAILS_ROOT}/app/views/warhol/index.rhtml:2:in `compile_template' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:305:in `compile_and_render_template' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:290:in `render_template' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:249:in `render_file' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:699:in `render_file' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:621:in `render_with_no_layout' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/layout.rb:243:in `render_without_benchmark' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:53:in `render' C:/InstantRails-1.0/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:53:in `render' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:913:in `perform_action_without_filters' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' C:/InstantRails-1.0/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/rescue.rb:82:in `perform_action' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:381:in `process_without_filters' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:377:in `process_without_session_management_support' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/session_management.rb:117:in `process' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:38:in `dispatch' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:115:in `handle_dispatch' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:81:in `service' C:/InstantRails-1.0/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' C:/InstantRails-1.0/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' C:/InstantRails-1.0/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' C:/InstantRails-1.0/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' C:/InstantRails-1.0/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start' C:/InstantRails-1.0/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start' C:/InstantRails-1.0/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start' C:/InstantRails-1.0/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:67:in `dispatch' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/servers/webrick.rb:59 C:/InstantRails-1.0/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/server.rb:30 C:/InstantRails-1.0/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require' C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require' script/server:3 Request *Parameters*: None Show session dump --- flash: !map:ActionController::Flash::FlashHash {} Response *Headers*: {"cookie"=>[], "Cache-Control"=>"no-cache"} -- -Shane -------------------------- Sites: Photo http://www.thomascustomdigital.com Coding http://www.viciousbytes.com fun http://www.flickr.com/photos/codejoy blog http://codejoy.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060520/2c577b20/attachment-0001.htm From annapenn at comcast.net Sun May 21 01:46:26 2006 From: annapenn at comcast.net (Anna Penney) Date: Sat, 20 May 2006 22:46:26 -0700 Subject: [Instantrails-users] MySQL-Front question Message-ID: <001301c67c99$e70a24c0$6401a8c0@BANANA> I've been going through the tutorial here: http://instantrails.rubyforge.org/tutorial/index.html About a third of the way down, right under figure 23 there's a section on 'Adding Recipe Fields'. I just completed creating a recipes table and the Primary Index and auto_incrementing id have been made. The thing that's baffling me, is that my results are not exactly like what's shown in figure 24. More specifically, the null field should be set to no, while mine shows up set to yes. I right-mouse click to check on the properties of id, and the default section is disabled and only the Auto Increment field is checked. So, why does is the null property showing up as allowed? I tried click off auto_increment and look at it again, the null turns to no, but when I turn the auto_increment back, it turns null back to yes. Very strange! Any ideas? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060520/d748a66e/attachment.htm From curt.hibbs at gmail.com Sun May 21 01:58:54 2006 From: curt.hibbs at gmail.com (Curt Hibbs) Date: Sun, 21 May 2006 00:58:54 -0500 Subject: [Instantrails-users] MySQL-Front question In-Reply-To: <001301c67c99$e70a24c0$6401a8c0@BANANA> References: <001301c67c99$e70a24c0$6401a8c0@BANANA> Message-ID: <31d15f490605202258o5f591a06x3c28d5d00d0eed32@mail.gmail.com> You are running a newer version of MySQL-Front than the one used to create those screenshots. the stuff you are seeing are some of the behaviors that they have changed. Curt On 5/21/06, Anna Penney wrote: > > I've been going through the tutorial here: > http://instantrails.rubyforge.org/tutorial/index.html > > About a third of the way down, right under figure 23 there's a section on > 'Adding Recipe Fields'. I just completed creating a recipes table and the > Primary Index and auto_incrementing id have been made. > > The thing that's baffling me, is that my results are not exactly like > what's shown in figure 24. More specifically, the null field should be set > to no, while mine shows up set to yes. I right-mouse click to check on the > properties of id, and the default section is disabled and only the Auto > Increment field is checked. So, why does is the null property showing up as > allowed? > > I tried click off auto_increment and look at it again, the null turns to > no, but when I turn the auto_increment back, it turns null back to yes. > Very strange! > > Any ideas? > > Thanks! > > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060521/09206693/attachment.htm From annapenn at comcast.net Sun May 21 03:44:00 2006 From: annapenn at comcast.net (Anna Penney) Date: Sun, 21 May 2006 00:44:00 -0700 Subject: [Instantrails-users] MySQL-Front question References: <001301c67c99$e70a24c0$6401a8c0@BANANA> <31d15f490605202258o5f591a06x3c28d5d00d0eed32@mail.gmail.com> Message-ID: <001601c67caa$530ec800$6401a8c0@BANANA> Nice to know...thanks! ----- Original Message ----- From: Curt Hibbs To: instantrails-users at rubyforge.org Sent: Saturday, May 20, 2006 10:58 PM Subject: Re: [Instantrails-users] MySQL-Front question You are running a newer version of MySQL-Front than the one used to create those screenshots. the stuff you are seeing are some of the behaviors that they have changed. Curt On 5/21/06, Anna Penney wrote: I've been going through the tutorial here: http://instantrails.rubyforge.org/tutorial/index.html About a third of the way down, right under figure 23 there's a section on 'Adding Recipe Fields'. I just completed creating a recipes table and the Primary Index and auto_incrementing id have been made. The thing that's baffling me, is that my results are not exactly like what's shown in figure 24. More specifically, the null field should be set to no, while mine shows up set to yes. I right-mouse click to check on the properties of id, and the default section is disabled and only the Auto Increment field is checked. So, why does is the null property showing up as allowed? I tried click off auto_increment and look at it again, the null turns to no, but when I turn the auto_increment back, it turns null back to yes. Very strange! Any ideas? Thanks! _______________________________________________ Instantrails-users mailing list Instantrails-users at rubyforge.org http://rubyforge.org/mailman/listinfo/instantrails-users ------------------------------------------------------------------------------ _______________________________________________ Instantrails-users mailing list Instantrails-users at rubyforge.org http://rubyforge.org/mailman/listinfo/instantrails-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060521/c7fdce56/attachment.htm From curt.hibbs at gmail.com Mon May 22 00:08:55 2006 From: curt.hibbs at gmail.com (Curt Hibbs) Date: Sun, 21 May 2006 23:08:55 -0500 Subject: [Instantrails-users] RMagick gem problem using InstantRails and possibly WEBrick... In-Reply-To: <67bcabf80605201336n7b21cde6n20c8e133cbbb9ac9@mail.gmail.com> References: <67bcabf80605201336n7b21cde6n20c8e133cbbb9ac9@mail.gmail.com> Message-ID: <31d15f490605212108q7052ffc1re48d7ddc01a5f5c9@mail.gmail.com> I don't know what the problem is, but I have two suggestions: - Do a google search fpr "rails rmagick problem" -- you might find that someone else has already and and solved this problem. - Post this on the Rails mailing list (there's more people there, and maybe someone there might know the answer). Good luck! On 5/20/06, Shane Thomas wrote: > > Hello, I am new to rails but have been having fun so far. Until now. I > am sure this is just my inexperience but I have the RMagick gem (ruby gem > for using imagemagick manipulation) installed on my machine that I would > like to then use in my rails app. I first installed it and tried it out, > and it didnt do anything for me, took me a while to realize I needed the > windows RUBYOPT rubygems environment variable set. After that, I could > finally call stuff like: > > >ruby myLittleTestProg.rb > > which used a > require 'RMagick' > and it would run fine. > > So I think, I tested my little script out, I want to do it on rails and > call it from my web app. I build a skeleton web app, and goto the > config/environment.rb file and say: > require 'RMagick' > > adding this line, kills the skeleton app, what ran fine with webrick now > gives me a strange error that I wll post here. (and yes after changing the > environment.rb file I did relaunch the server). I installed the flickr > gem as well, and this runs fine, I can easily say in the environment.rbfile: > require 'flickr' > and it works, it is just when I require 'RMagick' from that environment.rbfile in my rails app it crashes with this error in the > index.rhtml: > > I am looking for any suggestions, cause I am totally lost. Not sure why > the RMagick include runs fine when I just use it from a ruby .rb file, but > when I try to require it from my rails app, it doesnt work...this is locally > using WEBrick (i tried my rails host online, and it seems that the require > RMagick works there, I just need to get it working locally for development > and testing purposes..) > > Thanks for anyone with any help or suggestions... > > -Shane > error is as follows when require 'RMagick' is added to environment.rb of a > skeleton rails app: > > SyntaxError in Warhol#index > > Showing *app/views/warhol/index.rhtml* where line *#2* raised: > > compile error > ./script/../config/../app/views/warhol/index.rhtml:2: parse error, unexpected $, expecting kEND > > Extracted source (around line *#2*): > > 1: <%= form_remote_tag :url => {:action => 'search'}, :update => 'photos' %> > 2:
> 3: > 4: <%= text_field_tag 'tags' %> > > 5: <%= submit_tag 'Find' %> > > Trace of template inclusion: /app/views/warhol/index.rhtml > > RAILS_ROOT: ./script/../config/.. > Application Trace | Framework Trace| Full > Trace > > #{RAILS_ROOT}/app/views/warhol/index.rhtml:2:in `compile_template' > > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:305:in `compile_and_render_template' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:290:in `render_template' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:249:in `render_file' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:699:in `render_file' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:621:in `render_with_no_layout' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/layout.rb:243:in `render_without_benchmark' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:53:in `render' > C:/InstantRails-1.0/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:53:in `render' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:913:in `perform_action_without_filters' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' > C:/InstantRails-1.0/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/rescue.rb:82:in `perform_action' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:381:in `process_without_filters' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:377:in `process_without_session_management_support' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/session_management.rb:117:in `process' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:38:in `dispatch' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:115:in `handle_dispatch' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:81:in `service' > C:/InstantRails-1.0/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' > C:/InstantRails-1.0/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' > C:/InstantRails-1.0/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' > C:/InstantRails-1.0/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' > C:/InstantRails-1.0/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start' > C:/InstantRails-1.0/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start' > C:/InstantRails-1.0/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start' > C:/InstantRails-1.0/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:67:in `dispatch' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/servers/webrick.rb:59 > C:/InstantRails-1.0/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/server.rb:30 > C:/InstantRails-1.0/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require' > script/server:3 > > #{RAILS_ROOT}/app/views/warhol/index.rhtml:2:in `compile_template' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:305:in `compile_and_render_template' > C:/InstantRails- > 1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:290:in `render_template' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_view/base.rb:249:in `render_file' > C:/InstantRails- > 1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:699:in `render_file' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:621:in `render_with_no_layout' > > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/layout.rb:243:in `render_without_benchmark' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:53:in `render' > > C:/InstantRails-1.0/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:53:in `render' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack- > 1.12.1/lib/action_controller/base.rb:913:in `perform_action_without_filters' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark' > > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' > C:/InstantRails-1.0/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure' > C:/InstantRails- > 1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/rescue.rb:82:in `perform_action' > > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:381:in `process_without_filters' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:377:in `process_without_session_management_support' > > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/session_management.rb:117:in `process' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:38:in `dispatch' > > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:115:in `handle_dispatch' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:81:in `service' > C:/InstantRails- > 1.0/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' > C:/InstantRails-1.0/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' > C:/InstantRails-1.0/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' > C:/InstantRails- > 1.0/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' > C:/InstantRails-1.0/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start' > C:/InstantRails-1.0/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start' > C:/InstantRails- > 1.0/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start' > C:/InstantRails-1.0/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:67:in `dispatch' > > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/servers/webrick.rb:59 > C:/InstantRails-1.0/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/activesupport- > 1.3.1/lib/active_support/dependencies.rb:147:in `require' > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/server.rb:30 > C:/InstantRails-1.0/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require' > > C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require' > script/server:3 > > Request > > *Parameters*: None > > Show session dump > > --- > flash: !map:ActionController::Flash::FlashHash {} > > Response *Headers*: {"cookie"=>[], "Cache-Control"=>"no-cache"} > > > -- > -Shane > -------------------------- > Sites: > Photo > http://www.thomascustomdigital.com > Coding > http://www.viciousbytes.com > fun > http://www.flickr.com/photos/codejoy > blog > http://codejoy.blogspot.com > > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060521/f4e1f3e2/attachment-0001.htm From heikki74 at gmail.com Mon May 22 03:12:11 2006 From: heikki74 at gmail.com (=?ISO-8859-1?Q?Heikki_Yl=F6nen?=) Date: Mon, 22 May 2006 10:12:11 +0300 Subject: [Instantrails-users] RMagick gem problem using InstantRails and possibly WEBrick... In-Reply-To: <67bcabf80605201336n7b21cde6n20c8e133cbbb9ac9@mail.gmail.com> References: <67bcabf80605201336n7b21cde6n20c8e133cbbb9ac9@mail.gmail.com> Message-ID: <9c18518b0605220012y17f2e515r85e3e7df504a438f@mail.gmail.com> 2006/5/20, Shane Thomas : > > > SyntaxError in Warhol#index > > Showing *app/views/warhol/index.rhtml* where line *#2* raised: > > compile error > ./script/../config/../app/views/warhol/index.rhtml:2: parse error, unexpected $, expecting kEND > > Extracted source (around line *#2*): > > 1: <%= form_remote_tag :url => {:action => 'search'}, :update => 'photos' %> > 2:
> 3: > 4: <%= text_field_tag 'tags' %> > > 5: <%= submit_tag 'Find' %> > > I use RMagick with File_column plugin with the same setup (Webrick and InstantRails on Windows XP). No problems here. File_column requires RMagick like this (in vendor/plugins/file_column/lib/magick_file_column.rb): # RMagick might not have been loaded so far. # We do not want to require it on every call of this method # as this might be fairly expensive, so we just try if ::Magick # exists and require it if not. begin ::Magick rescue NameError require 'RMagick' end -- Heikki -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060522/b785b097/attachment.htm From bill.walton at charter.net Wed May 24 16:03:50 2006 From: bill.walton at charter.net (Bill Walton) Date: Wed, 24 May 2006 15:03:50 -0500 Subject: [Instantrails-users] Fw: [Rails] Mongrel errors on file upload Message-ID: <011801c67f6d$2d4160e0$6401a8c0@Presario> Sorry for the cross-post but I wanted to ask here too since it's certainly possible that this is an InstantRails-specific problem. Thanks, Bill ----- Original Message ----- From: Bill Walton To: rails at lists.rubyonrails.org Sent: Wednesday, May 24, 2006 2:50 PM Subject: [Norton AntiSpam] [Rails] Mongrel errors on file upload I did a spike in my sandbox to make sure I understood how to do file uploads using CGI and there seems to be a problem with Mongrel. WEBrick doesn't display the problem, but I can reproduce it everytime with Mongrel. I'd really appreciate it if someone would try out the code below and see if they see the same thing. The browser behavior is: - under IE6, a Page Not Found error - under Firefox, a blank white page The display in the command window is not browser-dependent. The error listing starts with "Error calling Dispatcher.dispatch #". I've included the entire error listing below. The controller and view code is given below. The CGI file upload delivers either an IOString or a Tempfile, depending on the size of the file being uploaded. I'm using a 3K file to test IOString, and a 10K file to test Tempfile. Both are XML text files. The scenerio that produces the error is: 1) mongrel_rails start 2) launch brower and nav to http://localhost:3000/create 3) upload small file 4) upload large file If I upload in reverse, first the large file and then the small file, everything's fine. If I upload the small file and then the large file, Mongrel sends my browser off into the weeds and shows me the following in the command window. C:\InstantRails-1.3\rails_apps\sandbox>mongrel_rails start Running Mongrel server in development mode at 0.0.0.0:3000 Server Ready. Use CTRL-Pause/Break to quit. Error calling Dispatcher.dispatch # C:/InstantRails-1.3/ruby/lib/ruby/1.8/tempfile.rb:12 C:/InstantRails-1.3/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require' C:/InstantRails-1.3/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require' C:/InstantRails-1.3/ruby/lib/ruby/1.8/cgi.rb:987:in `read_multipart' C:/InstantRails-1.3/ruby/lib/ruby/1.8/cgi.rb:984:in `read_multipart' C:/InstantRails-1.3/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/cgi_ext/raw_post_data_fix.rb:20:in `initialize_query' C:/InstantRails-1.3/ruby/lib/ruby/1.8/cgi.rb:2270:in `initialize' C:/InstantRails-1.3/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.11-mswin32/lib/mongrel/cgi.rb:41:in `initialize' C:/InstantRails-1.3/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.11-mswin32/lib/mongrel/rails.rb:57:in `process' C:/InstantRails-1.3/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.11-mswin32/lib/mongrel.rb:389:in `process_client' C:/InstantRails-1.3/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.11-mswin32/lib/mongrel.rb:359:in `initialize' C:/InstantRails-1.3/ruby/lib/ruby/1.8/timeout.rb:56:in `timeout' C:/InstantRails-1.3/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.11-mswin32/lib/mongrel.rb:358:in `initialize' C:/InstantRails-1.3/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.11-mswin32/lib/mongrel.rb:356:in `initialize' C:/InstantRails-1.3/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.11-mswin32/lib/mongrel.rb:355:in `initialize' C:/InstantRails-1.3/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.11-mswin32/bin/mongrel_rails:91:in `start_mongrel' C:/InstantRails-1.3/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.11-mswin32/bin/mongrel_rails:144:in `run' C:/InstantRails-1.3/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.11-mswin32/lib/mongrel/command.rb:163:in `run' C:/InstantRails-1.3/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.11-mswin32/bin/mongrel_rails:228 C:/InstantRails-1.3/ruby/bin/mongrel_rails:18 Here's my code. ------------ create_controller.rb -------------- class CreateController < ApplicationController def index end def read_in if params[:file_to_upload].instance_of?(Tempfile) FileUtils.copy(params[:file_to_upload].local_path, "#{RAILS_ROOT}/public/sandbox1.xml") @location_display = "Copied the Tempfile to sandbox1.xml" else File.open("#{RAILS_ROOT}/public/sandbox2.xml","w"){|f| f.write(params[:file_to_upload].read) f.close} @location_display = "Saved the IOString to sandbox2.xml" end end end ------------ index.rhtml ------------

Choose the file to upload:

<%= start_form_tag({:action => 'read_in'}, :method => "POST", :multipart => true) %> <%= file_field_tag "file_to_upload" %>

<%= submit_tag value="Upload" %> <% end_form_tag %> --------------- read_in.rhtml --------------

File stored at:

<%=h @location_display %> -------------------------------------------------- I'm running Windows XP. I seem to be having a "blond moment" and can't remember how to check Rails / Ruby versions but am using InstantRails 1.3. Thanks in advance to anyone who'll make the time to verify (or not) the problem I'm seeing. Best regards, Bill -------------------------------------------------------------------------------- _______________________________________________ Rails mailing list Rails at lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060524/22bbb376/attachment.htm From ian.connor at gmail.com Fri May 26 14:23:16 2006 From: ian.connor at gmail.com (Ian Connor) Date: Fri, 26 May 2006 20:23:16 +0200 Subject: [Instantrails-users] Instant Rails and your own applications Message-ID: Hi, I want to make an open source rails project as easy as possible to install. Can I use Instant Rails for this? I treid to look at the FAQ but could not see this was possible. Ideally I would like to have Instant Rails install Ruby, Rails, MySql, etc and then have it add my application and add the mysql user (could be just root also) and then the sql for creating the tables. Sound like fun or impossible? -- Regards, Ian Connor -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060526/1d74341c/attachment.htm From faivrem at gmail.com Fri May 26 18:14:31 2006 From: faivrem at gmail.com (Mickael Faivre-Macon) Date: Sat, 27 May 2006 00:14:31 +0200 Subject: [Instantrails-users] Instant Rails and your own applications In-Reply-To: References: Message-ID: Hi, I use instant rails for development, on several machines. While the package would 50 Megs or more, it could also be used for distributing an app. But why not distribute only the sources and keep your table schema in migrations ? Your installation procedure would say to install instantrails and copy the sources into the rails_app dir and voila. Mickael. On 5/26/06, Ian Connor wrote: > Hi, > > I want to make an open source rails project as easy as possible to install. > > Can I use Instant Rails for this? I treid to look at the FAQ but could not > see this was possible. > > Ideally I would like to have Instant Rails install Ruby, Rails, MySql, etc > and then have it add my application and add the mysql user (could be just > root also) and then the sql for creating the tables. > > Sound like fun or impossible? > > -- > Regards, > Ian Connor > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users > > From felix_olow at yahoo.com Fri May 26 19:26:29 2006 From: felix_olow at yahoo.com (phil olow) Date: Fri, 26 May 2006 16:26:29 -0700 (PDT) Subject: [Instantrails-users] remove me from mailing list Message-ID: <20060526232629.52865.qmail@web34412.mail.mud.yahoo.com> Thanks --------------------------------- Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone. Get Yahoo! Messenger with Voice -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060526/375a3357/attachment.htm From faivrem at gmail.com Sat May 27 02:23:01 2006 From: faivrem at gmail.com (Mickael Faivre-Macon) Date: Sat, 27 May 2006 08:23:01 +0200 Subject: [Instantrails-users] remove me from mailing list In-Reply-To: <20060526232629.52865.qmail@web34412.mail.mud.yahoo.com> References: <20060526232629.52865.qmail@web34412.mail.mud.yahoo.com> Message-ID: Go to http://rubyforge.org/mailman/listinfo/instantrails-users and unsubscribe yourself. Mickael. On 5/27/06, phil olow wrote: > Thanks From ian.connor at gmail.com Sat May 27 04:55:39 2006 From: ian.connor at gmail.com (Ian Connor) Date: Sat, 27 May 2006 09:55:39 +0100 Subject: [Instantrails-users] Instant Rails and your own applications In-Reply-To: References: Message-ID: I was hoping for a one click install and people to not even know how to use mysql or migrate type stuff. However, I am not sure coping the sources will be enough as I would need to create a database. Having said that, this might be my ignorance on how these things work. If I have all the sql in the migration directory, how can I make sure it is run before the user starts? Ian. On 5/26/06, Mickael Faivre-Macon wrote: > > Hi, > > I use instant rails for development, on several machines. > While the package would 50 Megs or more, it could also be used for > distributing an app. > But why not distribute only the sources and keep your table schema in > migrations ? > Your installation procedure would say to install instantrails and copy > the sources into the rails_app dir and voila. > > Mickael. > > > On 5/26/06, Ian Connor wrote: > > Hi, > > > > I want to make an open source rails project as easy as possible to > install. > > > > Can I use Instant Rails for this? I treid to look at the FAQ but could > not > > see this was possible. > > > > Ideally I would like to have Instant Rails install Ruby, Rails, MySql, > etc > > and then have it add my application and add the mysql user (could be > just > > root also) and then the sql for creating the tables. > > > > Sound like fun or impossible? > > > > -- > > Regards, > > Ian Connor > > _______________________________________________ > > Instantrails-users mailing list > > Instantrails-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/instantrails-users > > > > > > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users > -- Regards, Ian Connor -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060527/34dbab84/attachment.htm From curt.hibbs at gmail.com Sat May 27 10:02:21 2006 From: curt.hibbs at gmail.com (Curt Hibbs) Date: Sat, 27 May 2006 09:02:21 -0500 Subject: [Instantrails-users] Instant Rails and your own applications In-Reply-To: References: Message-ID: <31d15f490605270702w10584e1fic0d51e9923eac400@mail.gmail.com> On 5/27/06, Ian Connor wrote: > > I was hoping for a one click install and people to not even know how to > use mysql or migrate type stuff. > > However, I am not sure coping the sources will be enough as I would need > to create a database. > > Having said that, this might be my ignorance on how these things work. If > I have all the sql in the migration directory, how can I make sure it is run > before the user starts? > You don't need to do this at all. You can set up your database and populate its tabes with data and then zip up the Instant Rails directory tree. This is how the cookbook sample app is delivered with Instant Rails (take a look at the cookbook database, you'l see all the tables there with data). If you need to do more at installation time, then you'd have to create a true installer. You could take a look at NSIS, which is used by the One-Click Ruby Installer for Windows: http://nsis.sourceforge.net/Main_Page Curt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060527/0a4c8df4/attachment.htm From curt.hibbs at gmail.com Sat May 27 10:04:30 2006 From: curt.hibbs at gmail.com (Curt Hibbs) Date: Sat, 27 May 2006 09:04:30 -0500 Subject: [Instantrails-users] Fw: [Rails] Mongrel errors on file upload In-Reply-To: <011801c67f6d$2d4160e0$6401a8c0@Presario> References: <011801c67f6d$2d4160e0$6401a8c0@Presario> Message-ID: <31d15f490605270704h263c4f58ie07d132119870702@mail.gmail.com> Doesn't seem likely that this is specific to IR. Have you asked Zed about this? Curt On 5/24/06, Bill Walton wrote: > > Sorry for the cross-post but I wanted to ask here too since it's > certainly possible that this is an InstantRails-specific problem. > > Thanks, > Bill > ----- Original Message ----- *From:* Bill Walton > *To:* rails at lists.rubyonrails.org > *Sent:* Wednesday, May 24, 2006 2:50 PM > *Subject:* [Norton AntiSpam] [Rails] Mongrel errors on file upload > > I did a spike in my sandbox to make sure I understood how to do file > uploads using CGI and there seems to be a problem with Mongrel. WEBrick > doesn't display the problem, but I can reproduce it everytime with Mongrel. > I'd really appreciate it if someone would try out the code below and see if > they see the same thing. > > The browser behavior is: > - under IE6, a Page Not Found error > - under Firefox, a blank white page > > The display in the command window is not browser-dependent. The error > listing starts with "Error calling Dispatcher.dispatch # superclass mismatch for class Tempfile>". I've included the entire error > listing below. > > The controller and view code is given below. > > The CGI file upload delivers either an IOString or a Tempfile, depending > on the size of the file being uploaded. I'm using a 3K file to test > IOString, and a 10K file to test Tempfile. Both are XML text files. > > The scenerio that produces the error is: > 1) mongrel_rails start > 2) launch brower and nav to http://localhost:3000/create > 3) upload small file > 4) upload large file > > If I upload in reverse, first the large file and then the small file, > everything's fine. > > If I upload the small file and then the large file, Mongrel sends my > browser off into the weeds and shows me the following in the command window. > > > C:\InstantRails-1.3\rails_apps\sandbox>mongrel_rails start > Running Mongrel server in development mode at 0.0.0.0:3000 > Server Ready. Use CTRL-Pause/Break to quit. > Error calling Dispatcher.dispatch # class Tem > pfile> > C:/InstantRails-1.3/ruby/lib/ruby/1.8/tempfile.rb:12 > C:/InstantRails-1.3 > /ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require' > C:/InstantRails-1.3/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in > `require' > C:/InstantRails-1.3/ruby/lib/ruby/1.8/cgi.rb:987:in `read_multipart' > C:/InstantRails-1.3/ruby/lib/ruby/1.8/cgi.rb:984:in `read_multipart' > C:/InstantRails-1.3/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/cgi_ext/raw_post_data_fix.rb:20:in > `initialize_query' > C:/InstantRails-1.3/ruby/lib/ruby/1.8/cgi.rb:2270:in `initialize' > C:/InstantRails-1.3/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.11-mswin32/lib/mongrel/cgi.rb:41:in > `initialize' > C:/InstantRails-1.3/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.11-mswin32/lib/mongrel/rails.rb:57:in > `process' > C:/InstantRails-1.3/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.11-mswin32/lib/mongrel.rb:389:in > `process_client' > C:/InstantRails-1.3/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.11-mswin32/lib/mongrel.rb:359:in > `initialize' > C:/InstantRails-1.3/ruby/lib/ruby/1.8/timeout.rb:56:in `timeout' > C:/InstantRails-1.3/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.11-mswin32/lib/mongrel.rb:358:in > `initialize' > C:/InstantRails-1.3/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.11-mswin32/lib/mongrel.rb:356:in > `initialize' > C:/InstantRails-1.3/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.11-mswin32/lib/mongrel.rb:355:in > `initialize' > C:/InstantRails-1.3/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.11-mswin32/bin/mongrel_rails:91:in > `start_mongrel' > C:/InstantRails-1.3/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.11-mswin32/bin/mongrel_rails:144:in > `run' > C:/InstantRails-1.3/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.11-mswin32/lib/mongrel/command.rb:163:in > `run' > C:/InstantRails-1.3/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.11-mswin32 > /bin/mongrel_rails:228 > C:/InstantRails-1.3/ruby/bin/mongrel_rails:18 > Here's my code. > > ------------ create_controller.rb -------------- > class CreateController < ApplicationController > > def index > end > > def read_in > if params[:file_to_upload].instance_of?(Tempfile) > FileUtils.copy(params[:file_to_upload].local_path, > "#{RAILS_ROOT}/public/sandbox1.xml") > @location_display = "Copied the Tempfile to sandbox1.xml" > else > File.open("#{RAILS_ROOT}/public/sandbox2.xml","w"){|f| > f.write(params[:file_to_upload].read) > f.close} > @location_display = "Saved the IOString to sandbox2.xml" > end > end > end > > ------------ index.rhtml ------------ >

Choose the file to upload:

> > <%= start_form_tag({:action => 'read_in'}, :method => "POST", :multipart > => true) %> > > > <%= file_field_tag "file_to_upload" %>

> > <%= submit_tag value="Upload" %> > <% end_form_tag %> > > --------------- read_in.rhtml -------------- >

File stored at:

> > <%=h @location_display %> > > -------------------------------------------------- > > I'm running Windows XP. I seem to be having a "blond moment" and can't > remember how to check Rails / Ruby versions but am using InstantRails 1.3. > > Thanks in advance to anyone who'll make the time to verify (or not) the > problem I'm seeing. > > Best regards, > Bill > > ------------------------------ > > _______________________________________________ > Rails mailing list > Rails at lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060527/2174c276/attachment.htm From ian.connor at gmail.com Sat May 27 11:58:23 2006 From: ian.connor at gmail.com (Ian Connor) Date: Sat, 27 May 2006 16:58:23 +0100 Subject: [Instantrails-users] Instant Rails and your own applications In-Reply-To: <31d15f490605270702w10584e1fic0d51e9923eac400@mail.gmail.com> References: <31d15f490605270702w10584e1fic0d51e9923eac400@mail.gmail.com> Message-ID: Thanks - I am trying this! ... just looked too easy to be true. Ian On 5/27/06, Curt Hibbs wrote: > > On 5/27/06, Ian Connor wrote: > > > > I was hoping for a one click install and people to not even know how to > > use mysql or migrate type stuff. > > > > However, I am not sure coping the sources will be enough as I would need > > to create a database. > > > > Having said that, this might be my ignorance on how these things work. > > If I have all the sql in the migration directory, how can I make sure it is > > run before the user starts? > > > > You don't need to do this at all. > > You can set up your database and populate its tabes with data and then zip > up the Instant Rails directory tree. This is how the cookbook sample app is > delivered with Instant Rails (take a look at the cookbook database, you'l > see all the tables there with data). > > If you need to do more at installation time, then you'd have to create a > true installer. You could take a look at NSIS, which is used by the > One-Click Ruby Installer for Windows: > > http://nsis.sourceforge.net/Main_Page > > Curt > > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users > > -- Regards, Ian Connor -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060527/5b46ff3b/attachment-0001.htm