From curt.hibbs at gmail.com Sun Apr 2 04:36:40 2006
From: curt.hibbs at gmail.com (Curt Hibbs)
Date: Sun, 2 Apr 2006 02:36:40 -0600
Subject: [Instantrails-users] phpMyAdmin Instant Rails
In-Reply-To: <200604020753.k327rveY003328@rubyforge.org>
References: <200604020753.k327rveY003328@rubyforge.org>
Message-ID: <31d15f490604020036q31072d6fsf8abebf4a31e7ec9@mail.gmail.com>
On 4/2/06, Gregor Jovanovich wrote:
>
> I really think Instant Rails is a classic - all the right stuff in a small
> package!
>
> My problem is that I have IR installed on my desktop and laptop, but the
> phpMyAdmin is "greyed out" on the desktop system - why?
Both Apache and MySQL have to be running in order to use phpMyAdmin. If
either one of those servers is not running, then the menu item is disabled
(grayed out).
Curt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060402/09cb83d2/attachment.htm
From per-olof.hermansson at telia.com Wed Apr 5 12:01:19 2006
From: per-olof.hermansson at telia.com (Per-Olof Hermansson Ny adress)
Date: Wed, 5 Apr 2006 18:01:19 +0200
Subject: [Instantrails-users] =?iso-8859-1?q?Can=B4t_start_RoR-application?=
=?iso-8859-1?q?s_with_InstantRails?=
Message-ID:
I have installed the latest InstantRails,
I get both Typo and Cookbook to work with SCGI, and with Webrick
But when I put other applications like Rubrick, Petstore in the rails_app
folder they don?t work,
the command window opens, and then closes quickly,
What can I do?
Per-Olof Hermansson
Vassev?gen 11
519 30 HORRED
0320-878 47
0709-91 97 60
Privat: per-olof.hermansson at telia.com
Arbete: per-olof.hermansson at massmarketing.se
Web: perolof at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060405/74b8224f/attachment.htm
From bill.walton at charter.net Wed Apr 5 12:09:39 2006
From: bill.walton at charter.net (Bill Walton)
Date: Wed, 5 Apr 2006 11:09:39 -0500
Subject: [Instantrails-users]
=?iso-8859-1?q?Can=B4t_start_RoR-application?=
=?iso-8859-1?q?s_with_InstantRails?=
References:
Message-ID: <09cb01c658cb$5805fa70$6401a8c0@dp2000>
Hi, (how to address you?)
One of the things that will cause that is if the database / tables an app uses aren't in place. If you've already done that, it would be easier to help if you would say more about the steps you've taken prior to starting the app.
Best regards,
Bill
----- Original Message -----
From: Per-Olof Hermansson Ny adress
To: instantrails-users at rubyforge.org
Sent: 2006-04-05 11:01 AM
Subject: [Instantrails-users] Can?t start RoR-applications with InstantRails
I have installed the latest InstantRails,
I get both Typo and Cookbook to work with SCGI, and with Webrick
But when I put other applications like Rubrick, Petstore in the rails_app folder they don?t work,
the command window opens, and then closes quickly,
What can I do?
Per-Olof Hermansson
Vassev?gen 11
519 30 HORRED
0320-878 47
0709-91 97 60
Privat: per-olof.hermansson at telia.com
Arbete: per-olof.hermansson at massmarketing.se
Web: perolof at gmail.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/20060405/d447adb8/attachment.htm
From russelldad+instantrails at gmail.com Sat Apr 8 21:09:42 2006
From: russelldad+instantrails at gmail.com (Paul Russell)
Date: Sat, 8 Apr 2006 21:09:42 -0400
Subject: [Instantrails-users] Application error (Apache) on virgin install
of 1.2
Message-ID:
Hi,
Instant Rails has been great for development using webrick. I'm trying to
move over to apache and running into all sorts of problems. I've narrowed it
down to a virgin install and can'
t even get the demo apps to work. Can anyone help?
I just installed Instant Rails 1.2 on my windows 2k box and I'm seeing some
strange behavior when I navigate to http://www.mycookbook.com/. i.e.
Application
error (Apache)
Heres what I did:
1. Downloaded Instant Rails 1.2
2. unzipped it into D:/devtools/
3. Changed my hosts file to include 127.0.0.1 www.mycookbook.com
4. started InstantRails.exe and confirmed apache and mysql started
5. typed http://www.mycookbook.com into firefox
6. I was redirected to http://www.mycookbook.com/recipes/list
7. got a 500 internal server error consisting of the text in
rails_apps/mycookbook/public/500.html
Any ideas?
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060408/be11ebc2/attachment-0001.htm
From curt.hibbs at gmail.com Sat Apr 8 22:08:41 2006
From: curt.hibbs at gmail.com (Curt Hibbs)
Date: Sat, 8 Apr 2006 21:08:41 -0500
Subject: [Instantrails-users] Application error (Apache) on virgin
install of 1.2
In-Reply-To:
References:
Message-ID: <31d15f490604081908s23f04e1ek9cb33ead44b48ee8@mail.gmail.com>
On 4/8/06, Paul Russell wrote:
>
> Hi,
>
> Instant Rails has been great for development using webrick. I'm trying to
> move over to apache and running into all sorts of problems. I've narrowed it
> down to a virgin install and can'
> t even get the demo apps to work. Can anyone help?
>
>
> I just installed Instant Rails 1.2 on my windows 2k box and I'm seeing
> some strange behavior when I navigate to http://www.mycookbook.com/. i.e.
> Application error (Apache)
>
>
> Heres what I did:
>
>
> 1. Downloaded Instant Rails 1.2
> 2. unzipped it into D:/devtools/
> 3. Changed my hosts file to include 127.0.0.1 www.mycookbook.com
> 4. started InstantRails.exe and confirmed apache and mysql started
> 5. typed http://www.mycookbook.com into firefox
> 6. I was redirected to http://www.mycookbook.com/recipes/list
> 7. got a 500 internal server error consisting of the text in
> rails_apps/mycookbook/public/500.html
>
>
> Any ideas?
>
> Paul
>
> That's exactly what I do... literally! I have a devtools folder also
(except its on my E: drive).
Anyway, it works for me. I wonder if there is something else installed on
your box that is conflicting somehow. Do you have another machine you could
try it on as a test?
Curt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060408/f34a0d7a/attachment.htm
From mortonda at dgrmm.net Sat Apr 8 23:39:20 2006
From: mortonda at dgrmm.net (David Morton)
Date: Sat, 08 Apr 2006 22:39:20 -0500
Subject: [Instantrails-users] Application error (Apache) on virgin
install of 1.2
In-Reply-To:
References:
Message-ID: <443881E8.9030805@dgrmm.net>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Paul Russell wrote:
> I just installed Instant Rails 1.2 on my windows 2k box and I'm seeing
> some strange behavior when I navigate to http://www.mycookbook.com/.
> i.e. Application error (Apache)
Did the SCGI process get started?
- --
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
iD8DBQFEOIHoSIxC85HZHLMRAhVlAJ9yAXlJ6U5VUlKvUBeh27iigM96rQCfYmWh
Nq6QkLbfHLTCrNdwYAJb9TQ=
=Pwna
-----END PGP SIGNATURE-----
From russelldad+instantrails at gmail.com Sun Apr 9 10:19:38 2006
From: russelldad+instantrails at gmail.com (Paul Russell)
Date: Sun, 9 Apr 2006 10:19:38 -0400
Subject: [Instantrails-users] Application error (Apache) on virgin
install of 1.2
In-Reply-To: <443881E8.9030805@dgrmm.net>
References:
<443881E8.9030805@dgrmm.net>
Message-ID:
I just tried it on a new machine running windows XP and got the same result
as on the windows 2k box. With the exception of windows (different
versions), the only thing these machines have in common is that they are
running McAffe Virus Scan 7.0.0 engine 4.4.00. I shut it off, but am still
getting the same error.
I don't see any SCGI process in the task manager process list. Is there
somewhere else I should be looking?
Paul
On 4/8/06, David Morton wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Paul Russell wrote:
>
> > I just installed Instant Rails 1.2 on my windows 2k box and I'm seeing
> > some strange behavior when I navigate to http://www.mycookbook.com/.
> > i.e. Application error (Apache)
>
> Did the SCGI process get started?
>
> - --
> 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
>
> iD8DBQFEOIHoSIxC85HZHLMRAhVlAJ9yAXlJ6U5VUlKvUBeh27iigM96rQCfYmWh
> Nq6QkLbfHLTCrNdwYAJb9TQ=
> =Pwna
> -----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/20060409/faa6d7d2/attachment.htm
From mortonda at dgrmm.net Sun Apr 9 12:37:43 2006
From: mortonda at dgrmm.net (David Morton)
Date: Sun, 09 Apr 2006 11:37:43 -0500
Subject: [Instantrails-users] Application error (Apache) on
virgin install of 1.2
In-Reply-To:
References: <443881E8.9030805@dgrmm.net>
Message-ID: <44393857.8010800@dgrmm.net>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Paul Russell wrote:
> I just tried it on a new machine running windows XP and got the same
> result as on the windows 2k box. With the exception of windows
> (different versions), the only thing these machines have in common is
> that they are running McAffe Virus Scan 7.0.0 engine 4.4.00. I shut it
> off, but am still getting the same error.
>
> I don't see any SCGI process in the task manager process list. Is there
> somewhere else I should be looking?
Start InstantRails, click the I, choose: Rails Applications, Manage Rails
Applications
put a checkmark next to the app, and then click "Start SCGI Server"
In addition, you have to be sure that the port matches on the SCGI server and in
the VirtualHost config.
- --
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
iD8DBQFEOThXSIxC85HZHLMRAlZwAJ9vL0rsWPsiYaajgu0kcYHeHYJpqgCdGm3H
DxgcLXCNHB+FUQQsLIRGJBA=
=BofZ
-----END PGP SIGNATURE-----
From j_gluck at yahoo.com Mon Apr 10 13:17:00 2006
From: j_gluck at yahoo.com (Joel Gluck)
Date: Mon, 10 Apr 2006 10:17:00 -0700 (PDT)
Subject: [Instantrails-users] Error - exec( ) may not be safe
Message-ID: <20060410171701.62387.qmail@web50506.mail.yahoo.com>
I am trying to run instantrails on a Win98 laptop.
When I point my browser to 127.0.0.1 - it shows that it is redirecting to the cookbook and goes to 127.0.0.1/recipe/list. I get a page cannot be found error.
I created a hosts file and am using the default config file.
In the apache log I get:
[warn] exec( ) may not be safe
[error] [client 127.0.0.1] file does not exist: c:/instantrails/www/recipe/list
Any thoughts - other than not trying this on Win98?
Thanks,
Joel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060410/b76a726b/attachment.htm
From mortonda at dgrmm.net Mon Apr 10 16:49:19 2006
From: mortonda at dgrmm.net (David Morton)
Date: Mon, 10 Apr 2006 15:49:19 -0500
Subject: [Instantrails-users] Error - exec( ) may not be safe
In-Reply-To: <20060410171701.62387.qmail@web50506.mail.yahoo.com>
References: <20060410171701.62387.qmail@web50506.mail.yahoo.com>
Message-ID: <443AC4CF.3000408@dgrmm.net>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Joel Gluck wrote:
> In the apache log I get:
> [warn] exec( ) may not be safe
> [error] [client 127.0.0.1] file does not exist:
> c:/instantrails/www/recipe/list
>
>
> Any thoughts - other than not trying this on Win98?
I don't think anyone has tried this on win98... so I fired up a vmware server to
try it. Apache dies.... and running it by hand yields:
Syntax error on line 210 of c:/instantrails/apache/conf/httpd.conf:
Cannot load c:/instantrails/php/php4apache.dll into server: (1157) One of the li
brary files needed to run this application cannot be found:
Note the errors or messages above, and press the key to exit. 28...
So, my guess is that getting apache to run on win98 is unsupported. :)
It also seems that the rails console doesn't work... probably because it is
trying to run cmd.exe and not command.com
I managed to get mongrel to run, but it hung when trying to access the database.
I don't think we are going to get it to run on win98.
- --
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
iD8DBQFEOsTOSIxC85HZHLMRAoSmAJ0ULLnJ1ZWyc6uS5SMburRwSSCpiwCeLD4I
1nMIOVPF337P2k4J85cUcwA=
=uuWK
-----END PGP SIGNATURE-----
From kambei at mac.com Mon Apr 10 19:45:04 2006
From: kambei at mac.com (kambei at mac.com)
Date: Mon, 10 Apr 2006 19:45:04 -0400
Subject: [Instantrails-users] (no subject)
Message-ID: <8E1A75D8-BD99-44F7-82DD-B9C88F4F00A8@mac.com>
Instant Rails is great. I really appreciate it.
I use the Oracle driver, and was bit by the recent Rails 1.1.0 bug.
I was excited by the rapid release of Instant Rails 1.2 (I can really
use the RoR 1.1.x features), but it still seems to include the old
oracle_adapter.rb . I've downloaded and checked InstantRails-1.2-
win.zip multiple times.
As a temporary workaround, I've patched my local copy of
oracle_adapter.rb, and it seems to work OK. Thanks in advance for
any help or guidance.
Sincerely,
-Kambei
From kambei at mac.com Mon Apr 10 19:58:56 2006
From: kambei at mac.com (kambei at mac.com)
Date: Mon, 10 Apr 2006 19:58:56 -0400
Subject: [Instantrails-users] Sorry,
my previous post should have been titled: Does Instant Rails 1.2
really include RoR 1.1.1?
Message-ID:
Thanks again for assistance and insights.
From russelldad+instantrails at gmail.com Mon Apr 10 20:44:57 2006
From: russelldad+instantrails at gmail.com (Paul Russell)
Date: Mon, 10 Apr 2006 20:44:57 -0400
Subject: [Instantrails-users] Application error (Apache) on virgin
install of 1.2
In-Reply-To: <44393857.8010800@dgrmm.net>
References:
<443881E8.9030805@dgrmm.net>
<44393857.8010800@dgrmm.net>
Message-ID:
Thanks David! I had no idea about the need to start an SCGI server. Now it
works perfectly!
For the Instant Rails Developers:
I can't help but wonder why and SCGI server is needed in instant rails. Why
not just pre-configure apache to use mod_ruby or embed the fast CGI code
some other way? That's not meant to be a rhetorical question either. I'm
really curious.
I noticed in the todo 1.0 code that it mentions making SCGI run as a
background process. That would definitely be preferable to running in a dos
window, but I'm still wondering why the need for the SCGI server as a
separate process.
Thanks again for the help. I'm back to working with rails!
Paul
On 4/9/06, David Morton wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Paul Russell wrote:
> > I just tried it on a new machine running windows XP and got the same
> > result as on the windows 2k box. With the exception of windows
> > (different versions), the only thing these machines have in common is
> > that they are running McAffe Virus Scan 7.0.0 engine 4.4.00. I shut it
> > off, but am still getting the same error.
> >
> > I don't see any SCGI process in the task manager process list. Is there
> > somewhere else I should be looking?
>
> Start InstantRails, click the I, choose: Rails Applications, Manage Rails
> Applications
>
> put a checkmark next to the app, and then click "Start SCGI Server"
>
> In addition, you have to be sure that the port matches on the SCGI server
> and in
> the VirtualHost config.
>
>
>
> - --
> 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
>
> iD8DBQFEOThXSIxC85HZHLMRAlZwAJ9vL0rsWPsiYaajgu0kcYHeHYJpqgCdGm3H
> DxgcLXCNHB+FUQQsLIRGJBA=
> =BofZ
> -----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/20060410/ddf31293/attachment-0001.htm
From mortonda at dgrmm.net Mon Apr 10 21:11:34 2006
From: mortonda at dgrmm.net (David Morton)
Date: Mon, 10 Apr 2006 20:11:34 -0500
Subject: [Instantrails-users] Application error (Apache) on
virgin install of 1.2
In-Reply-To:
References: <443881E8.9030805@dgrmm.net> <44393857.8010800@dgrmm.net>
Message-ID: <443B0246.1000307@dgrmm.net>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Paul Russell wrote:
> For the Instant Rails Developers:
> I can't help but wonder why and SCGI server is needed in instant rails.
> Why not just pre-configure apache to use mod_ruby or embed the fast CGI
> code some other way? That's not meant to be a rhetorical question
> either. I'm really curious.
Well, the first reason, I think, was that getting SCGI to run on windows was far
easier to accomplish than getting fcgi or mod_ruby installed.
Second, it looks like SCGI may be on the way out in favor of mongrel... but that
idea needs some more work.
Finally, the question of why have a seperate process... this is a concept I wish
more people would grasp. Some of this argument is more specifically for unix
platforms, but it may have some application to windows... Let me get up on my
soap box...
If you have multiple sites running in a webserver using php, mod_perl, mod_ruby,
fcgi... all of the sites run as the same user. This means that any of the
applications must be able to read any of the sites configuration files, and
thus, every application can access any other application. This is a huge
security risk. Hosting companies work around this with monstrous scripts to
create virtual servers with xen or some sort of chroot environment. Yuck.
A better model is to let the web server have access to any public static
content, but to proxy all requests back to an application server which runs as a
unique system user and as such is the only application that has access to
sensitive files. This is basic security 101, and the apache web server has
ignored this its entire life.
It would be possible in windows to do this too, although for simple development
it may be overkill. I would highly recommend this model for any production system.
Also, this system allows for greater horizontal scalability... the front end web
server can proxy the request to any number of middle tier application servers.
Then the webserver can do what it does best: serve static content, and the
application server (mongrel or scgi) can do what it does best.
...ok, I'll get off the soap box.
Obviously, InstantRails is not there yet, but the use of SCGI was a sound idea,
and I'm looking forward to seeing mongrel if it does better. It may make things
easier too... for basic development, I recommend mongrel and no apache - it's
fast and easy. Then for a production environment, apache can be activated to
be the front end and proxy the requests to mongrel. (I'm still trying to figure
out how to configure that, though)
- --
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
iD8DBQFEOwJGSIxC85HZHLMRAt0CAJ9bgoGHeSHGhWyOe/cGHK+S78ggeACgkomi
HltA8WA9u+4ORPJohU4FENE=
=8uJ8
-----END PGP SIGNATURE-----
From curt.hibbs at gmail.com Mon Apr 10 23:05:42 2006
From: curt.hibbs at gmail.com (Curt Hibbs)
Date: Mon, 10 Apr 2006 22:05:42 -0500
Subject: [Instantrails-users] Sorry,
my previous post should have been titled: Does Instant Rails 1.2
really include RoR 1.1.1?
In-Reply-To:
References:
Message-ID: <31d15f490604102005i2484b159pb59dc99f753d864f@mail.gmail.com>
On 4/10/06, kambei at mac.com wrote:
>
> Thanks again for assistance and insights.
>
Use Instant Rails to open a Ruby Console Window and then type "gem list".
This will tell you all of the RubyGems that are installed and what their
version numbers are (including Rails).
Curt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060410/b5152225/attachment.htm
From wfroelich at dbsnow.com Tue Apr 11 01:33:26 2006
From: wfroelich at dbsnow.com (William (Bill) Froelich)
Date: Tue, 11 Apr 2006 00:33:26 -0500
Subject: [Instantrails-users] Sorry,
my previous post should have been titled: Does Instant Rails
1.2really include RoR 1.1.1?
Message-ID:
For what it's worth, it looks like my copy of 1.2 includes RoR 1.1.0
--Bill
C:\InstantRails-1.2\rails_apps>gem list
*** LOCAL GEMS ***
...
rails (1.1.0)
Web-application framework with template engine, control-flow layer,
and ORM.
...
________________________________
From: instantrails-users-bounces at rubyforge.org
[mailto:instantrails-users-bounces at rubyforge.org] On Behalf Of Curt
Hibbs
Sent: Monday, April 10, 2006 10:06 PM
To: instantrails-users at rubyforge.org
Subject: Re: [Instantrails-users] Sorry,my previous post should have
been titled: Does Instant Rails 1.2really include RoR 1.1.1?
On 4/10/06, kambei at mac.com wrote:
Thanks again for assistance and insights.
Use Instant Rails to open a Ruby Console Window and then type "gem
list". This will tell you all of the RubyGems that are installed and
what their version numbers are (including Rails).
Curt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060411/73541d91/attachment.htm
From curt.hibbs at gmail.com Tue Apr 11 07:06:43 2006
From: curt.hibbs at gmail.com (Curt Hibbs)
Date: Tue, 11 Apr 2006 06:06:43 -0500
Subject: [Instantrails-users] Sorry,
my previous post should have been titled: Does Instant Rails
1.2really include RoR 1.1.1?
In-Reply-To:
References:
Message-ID: <31d15f490604110406i68827619xf9dade758f5d18ec@mail.gmail.com>
I messed up somewhere. :-(
You can do a "gem install rails" to get the lastest. Plus there's been
another point release of Rails anyway, so I guess ots time for IR 1.3 (later
today).
Curt
On 4/11/06, William (Bill) Froelich wrote:
>
> For what it's worth, it looks like my copy of 1.2 includes RoR 1.1.0
>
> --Bill
>
> C:\InstantRails-1.2\rails_apps>gem list
>
> *** LOCAL GEMS ***
> ...
>
> rails (1.1.0)
> Web-application framework with template engine, control-flow layer,
> and ORM.
> ...
>
> ------------------------------
> *From:* instantrails-users-bounces at rubyforge.org [mailto:
> instantrails-users-bounces at rubyforge.org] *On Behalf Of *Curt Hibbs
> *Sent:* Monday, April 10, 2006 10:06 PM
> *To:* instantrails-users at rubyforge.org
> *Subject:* Re: [Instantrails-users] Sorry,my previous post should have
> been titled: Does Instant Rails 1.2really include RoR 1.1.1?
>
>
> On 4/10/06, kambei at mac.com wrote:
> >
> > Thanks again for assistance and insights.
> >
>
> Use Instant Rails to open a Ruby Console Window and then type "gem list".
> This will tell you all of the RubyGems that are installed and what their
> version numbers are (including Rails).
>
> Curt
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060411/9b8db612/attachment.htm
From russelldad+instantrails at gmail.com Tue Apr 11 11:34:11 2006
From: russelldad+instantrails at gmail.com (Paul Russell)
Date: Tue, 11 Apr 2006 11:34:11 -0400
Subject: [Instantrails-users] Sorry,
my previous post should have been titled: Does Instant Rails
1.2really include RoR 1.1.1?
In-Reply-To: <31d15f490604110406i68827619xf9dade758f5d18ec@mail.gmail.com>
References:
<31d15f490604110406i68827619xf9dade758f5d18ec@mail.gmail.com>
Message-ID:
Would this explain why I'm getting segmentation faults in that take down the
web server (both apache and webrick) in 1.2 but not in 1.1?
If not I'll be happy to provide more info.
Paul
On 4/11/06, Curt Hibbs wrote:
>
> I messed up somewhere. :-(
>
> You can do a "gem install rails" to get the lastest. Plus there's been
> another point release of Rails anyway, so I guess ots time for IR 1.3(later today).
>
> Curt
>
>
> On 4/11/06, William (Bill) Froelich wrote:
> >
> > For what it's worth, it looks like my copy of 1.2 includes RoR 1.1.0
> >
> > --Bill
> >
> > C:\InstantRails-1.2\rails_apps>gem list
> >
> > *** LOCAL GEMS ***
> > ...
> >
> > rails (1.1.0)
> > Web-application framework with template engine, control-flow layer,
> > and ORM.
> > ...
> >
> > ------------------------------
> > *From:* instantrails-users-bounces at rubyforge.org [mailto:
> > instantrails-users-bounces at rubyforge.org] *On Behalf Of *Curt Hibbs
> > *Sent:* Monday, April 10, 2006 10:06 PM
> > *To:* instantrails-users at rubyforge.org
> > *Subject:* Re: [Instantrails-users] Sorry,my previous post should have
> > been titled: Does Instant Rails 1.2really include RoR 1.1.1?
> >
> >
> > On 4/10/06, kambei at mac.com < kambei at mac.com> wrote:
> > >
> > > Thanks again for assistance and insights.
> > >
> >
> > Use Instant Rails to open a Ruby Console Window and then type "gem
> > list". This will tell you all of the RubyGems that are installed and what
> > their version numbers are (including Rails).
> >
> > Curt
> >
> >
> >
>
> _______________________________________________
> 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/20060411/28bf0026/attachment.htm
From timuckun at gmail.com Wed Apr 12 02:20:15 2006
From: timuckun at gmail.com (Tim Uckun)
Date: Wed, 12 Apr 2006 18:20:15 +1200
Subject: [Instantrails-users] Previously installed stack.
Message-ID: <855e4dcf0604112320u21b18abbp46c2da162b0332d4@mail.gmail.com>
Hello all.
I already have ruby 1.82 installed as well as mysql. I presume I needto uninstall both of those right?
Also can I make a small suggestion. I don't really even want to usemysql or php. Maybe those things could be made optional to reduce thedownload size to a minimum.
Thanks, looking forward to using it.
From curt.hibbs at gmail.com Wed Apr 12 07:07:34 2006
From: curt.hibbs at gmail.com (Curt Hibbs)
Date: Wed, 12 Apr 2006 06:07:34 -0500
Subject: [Instantrails-users] Previously installed stack.
In-Reply-To: <855e4dcf0604112320u21b18abbp46c2da162b0332d4@mail.gmail.com>
References: <855e4dcf0604112320u21b18abbp46c2da162b0332d4@mail.gmail.com>
Message-ID: <31d15f490604120407u6840cd93hb3031c0df28dd6da@mail.gmail.com>
On 4/12/06, Tim Uckun wrote:
>
> Hello all.
> I already have ruby 1.82 installed as well as mysql. I presume I needto
> uninstall both of those right?
> Also can I make a small suggestion. I don't really even want to usemysql
> or php. Maybe those things could be made optional to reduce thedownload
> size to a minimum.
> Thanks, looking forward to using it.
>
You don't need to uninstall your existng ruby or mysql (although you can't
have both copies of mysql running at the same time). But with ruby and mysql
already installed I wonder if you really need Instant Rails since getting
Rails is just a matter of running "gem install rails", and the only need
apache to complete the set.
Curt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060412/25abcb6c/attachment.htm
From timuckun at gmail.com Wed Apr 12 07:12:07 2006
From: timuckun at gmail.com (Tim Uckun)
Date: Wed, 12 Apr 2006 23:12:07 +1200
Subject: [Instantrails-users] Previously installed stack.
In-Reply-To: <31d15f490604120407u6840cd93hb3031c0df28dd6da@mail.gmail.com>
References: <855e4dcf0604112320u21b18abbp46c2da162b0332d4@mail.gmail.com>
<31d15f490604120407u6840cd93hb3031c0df28dd6da@mail.gmail.com>
Message-ID: <855e4dcf0604120412p2102c18co2ff0be98b1789ef6@mail.gmail.com>
Actually I need ruby 1.8.4 and the one click installer for windows isstill the beta version and not the final release.
I was thinking this might be a good way to go.
On 4/12/06, Curt Hibbs wrote:> On 4/12/06, Tim Uckun wrote:>> > Hello all.> > I already have ruby 1.82 installed as well as mysql. I presume I needto> uninstall both of those right?> > Also can I make a small suggestion. I don't really even want to usemysql> or php. Maybe those things could be made optional to reduce thedownload> size to a minimum.>> Thanks, looking forward to using it.>> You don't need to uninstall your existng ruby or mysql (although you can't> have both copies of mysql running at the same time). But with ruby and mysql> already installed I wonder if you really need Instant Rails since getting> Rails is just a matter of running "gem install rails", and the only need> apache to complete the set.>> Curt>> _______________________________________________> Instantrails-users mailing list> Instantrails-users at rubyforge.org> http://rubyforge.org/mailman/listinfo/instantrails-users>>
From mortonda at dgrmm.net Wed Apr 12 10:45:10 2006
From: mortonda at dgrmm.net (David Morton)
Date: Wed, 12 Apr 2006 09:45:10 -0500
Subject: [Instantrails-users] Previously installed stack.
In-Reply-To: <855e4dcf0604120412p2102c18co2ff0be98b1789ef6@mail.gmail.com>
References: <855e4dcf0604112320u21b18abbp46c2da162b0332d4@mail.gmail.com> <31d15f490604120407u6840cd93hb3031c0df28dd6da@mail.gmail.com>
<855e4dcf0604120412p2102c18co2ff0be98b1789ef6@mail.gmail.com>
Message-ID: <443D1276.7070501@dgrmm.net>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Tim Uckun wrote:
> Actually I need ruby 1.8.4 and the one click installer for windows is still the beta version and not the final release.
InstantRails *uses* the one-click installer... ;)
And you might notice, Curt is project lead responsible for both... ;)
Although, Curt, he's Tim's partially right, RubyForge lists the one-click
installer as a release candidate, not a full release.
- --
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
iD8DBQFEPRJ2SIxC85HZHLMRArIOAKCOq7POpnKRC4Es47lSj3SCQeZR3gCgojUg
wmIN4EPtFvaSJBSmbnvsi5I=
=Qcd1
-----END PGP SIGNATURE-----
From timuckun at gmail.com Wed Apr 12 16:54:46 2006
From: timuckun at gmail.com (Tim Uckun)
Date: Thu, 13 Apr 2006 08:54:46 +1200
Subject: [Instantrails-users] Previously installed stack.
In-Reply-To: <443D1276.7070501@dgrmm.net>
References: <855e4dcf0604112320u21b18abbp46c2da162b0332d4@mail.gmail.com>
<31d15f490604120407u6840cd93hb3031c0df28dd6da@mail.gmail.com>
<855e4dcf0604120412p2102c18co2ff0be98b1789ef6@mail.gmail.com>
<443D1276.7070501@dgrmm.net>
Message-ID: <855e4dcf0604121354w7f85b27fn82a802236e6492b6@mail.gmail.com>
So where do I go get the one click for the 1.8.4 stable release?
On 4/13/06, David Morton wrote:> -----BEGIN PGP SIGNED MESSAGE-----> Hash: SHA1>> Tim Uckun wrote:> > Actually I need ruby 1.8.4 and the one click installer for windows is still the beta version and not the final release.>> InstantRails *uses* the one-click installer... ;)>> And you might notice, Curt is project lead responsible for both... ;)>> Although, Curt, he's Tim's partially right, RubyForge lists the one-click> installer as a release candidate, not a full release.>>>>>>> - --> 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>> iD8DBQFEPRJ2SIxC85HZHLMRArIOAKCOq7POpnKRC4Es47lSj3SCQeZR3gCgojUg> wmIN4EPtFvaSJBSmbnvsi5I=> =Qcd1> -----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 Wed Apr 12 17:01:20 2006
From: curt.hibbs at gmail.com (Curt Hibbs)
Date: Wed, 12 Apr 2006 16:01:20 -0500
Subject: [Instantrails-users] Previously installed stack.
In-Reply-To: <855e4dcf0604121354w7f85b27fn82a802236e6492b6@mail.gmail.com>
References: <855e4dcf0604112320u21b18abbp46c2da162b0332d4@mail.gmail.com>
<31d15f490604120407u6840cd93hb3031c0df28dd6da@mail.gmail.com>
<855e4dcf0604120412p2102c18co2ff0be98b1789ef6@mail.gmail.com>
<443D1276.7070501@dgrmm.net>
<855e4dcf0604121354w7f85b27fn82a802236e6492b6@mail.gmail.com>
Message-ID: <31d15f490604121401n44fa774bh14bce3d02ac677cb@mail.gmail.com>
Its the one labeled release candidate 1.
As I said, the actual Ruby runtime installed is solid. The only reason its
listed as a release candidate is because of minor problems with the
installer itself (most people won't care about these). For example, when
you uninstall, thet Start Menu items are not removed.
Curt
On 4/12/06, Tim Uckun wrote:
>
> So where do I go get the one click for the 1.8.4 stable release?
> On 4/13/06, David Morton wrote:> -----BEGIN PGP
> SIGNED MESSAGE-----> Hash: SHA1>> Tim Uckun wrote:> > Actually I need ruby
> 1.8.4 and the one click installer for windows is still the beta version
> and not the final release.>> InstantRails *uses* the one-click installer...
> ;)>> And you might notice, Curt is project lead responsible for both... ;)>>
> Although, Curt, he's Tim's partially right, RubyForge lists the one-click>
> installer as a release candidate, not a full release.>>>>>>> - --> 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>>
> iD8DBQFEPRJ2SIxC85HZHLMRArIOAKCOq7POpnKRC4Es47lSj3SCQeZR3gCgojUg>
> wmIN4EPtFvaSJBSmbnvsi5I=> =Qcd1> -----END PGP SIGNATURE----->
> _______________________________________________> 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/20060412/d648129f/attachment.htm
From timuckun at gmail.com Wed Apr 12 17:09:28 2006
From: timuckun at gmail.com (Tim Uckun)
Date: Thu, 13 Apr 2006 09:09:28 +1200
Subject: [Instantrails-users] Previously installed stack.
In-Reply-To: <31d15f490604121401n44fa774bh14bce3d02ac677cb@mail.gmail.com>
References: <855e4dcf0604112320u21b18abbp46c2da162b0332d4@mail.gmail.com>
<31d15f490604120407u6840cd93hb3031c0df28dd6da@mail.gmail.com>
<855e4dcf0604120412p2102c18co2ff0be98b1789ef6@mail.gmail.com>
<443D1276.7070501@dgrmm.net>
<855e4dcf0604121354w7f85b27fn82a802236e6492b6@mail.gmail.com>
<31d15f490604121401n44fa774bh14bce3d02ac677cb@mail.gmail.com>
Message-ID: <855e4dcf0604121409k712ce272ve8b2418f2ab5f8e7@mail.gmail.com>
OK thanks, I'll give it a go.
I will also evaluate the instant rails stack, If I had known aboutthat earlier it would have saved me a TON of work. In fact I mightswitch to it just because it's using apache and not webrick (not thatthere is anything wrong with that in development).
Thanks again for all your work.
On 4/13/06, Curt Hibbs wrote:> Its the one labeled release candidate 1.>> As I said, the actual Ruby runtime installed is solid. The only reason its> listed as a release candidate is because of minor problems with the> installer itself (most people won't care about these). For example, when> you uninstall, thet Start Menu items are not removed.>> Curt>>> On 4/12/06, Tim Uckun wrote:> > So where do I go get the one click for the 1.8.4 stable release?> > On 4/13/06, David Morton < mortonda at dgrmm.net> wrote:> -----BEGIN PGP> SIGNED MESSAGE-----> Hash: SHA1>> Tim Uckun wrote:> > Actually I need ruby> 1.8.4 and the one click installer for windows is still the beta version and> not the final release.>> InstantRails *uses* the one-click installer... ;)>>> And you might notice, Curt is project lead responsible for both... ;)>>> Although, Curt, he's Tim's partially right, RubyForge lists the one-click>> installer as a release candidate, not a full release.>>>>>>> - --> 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>>> iD8DBQFEPRJ2SIxC85HZHLMRArIOAKCOq7POpnKRC4Es47lSj3SCQeZR3gCgojUg>> wmIN4EPtFvaSJBSmbnvsi5I=> =Qcd1> -----END PGP SIGNATURE----->> _______________________________________________>> 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> >>>> _______________________________________________> Instantrails-users mailing list> Instantrails-users at rubyforge.org> http://rubyforge.org/mailman/listinfo/instantrails-users>>
From blazar at gmail.com Wed Apr 12 21:32:37 2006
From: blazar at gmail.com (Bill Lazar)
Date: Wed, 12 Apr 2006 18:32:37 -0700
Subject: [Instantrails-users] Mongrel?
In-Reply-To: <855e4dcf0604121409k712ce272ve8b2418f2ab5f8e7@mail.gmail.com>
Message-ID: <008b01c65e9a$26c7ca40$6401a8c0@littlesteven>
Are there instructions or tutorial for using Mongrel instead of
Webrick/Apache when starting apps through the Manage Rails Applications
window?
Thanks,
Bill
From mortonda at dgrmm.net Wed Apr 12 22:25:12 2006
From: mortonda at dgrmm.net (David Morton)
Date: Wed, 12 Apr 2006 21:25:12 -0500
Subject: [Instantrails-users] Mongrel?
In-Reply-To: <008b01c65e9a$26c7ca40$6401a8c0@littlesteven>
References: <008b01c65e9a$26c7ca40$6401a8c0@littlesteven>
Message-ID: <443DB688.2010700@dgrmm.net>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bill Lazar wrote:
> Are there instructions or tutorial for using Mongrel instead of
> Webrick/Apache when starting apps through the Manage Rails Applications
> window?
No, but it's pretty easy. Launch a rails console window, change into your rails
application, and type: mongrel_rails start
The mongrel website has more info on running mongrel. The key is to be in the
rails application directory with a command prompt to run it.
- --
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
iD8DBQFEPbaISIxC85HZHLMRAsG0AJ0d/cG+UvuzgMvuW82gCTuF6W1PmwCfdtUw
NgcrDyM0chr2FIzAarBmjac=
=/iF9
-----END PGP SIGNATURE-----
From timuckun at gmail.com Wed Apr 12 22:41:57 2006
From: timuckun at gmail.com (Tim Uckun)
Date: Thu, 13 Apr 2006 14:41:57 +1200
Subject: [Instantrails-users] uninitialized constant WEBrick
Message-ID: <855e4dcf0604121941g93e3488v88ff96314086bcd8@mail.gmail.com>
When attempting to do various things like cap or rake migrate I get anuninitialized constant WEBrick error. Does anybody what could becausing this? A transcript is attached below.
D:\Source\trunk\engine>lsengine gems install_gems.rb
D:\Source\trunk\engine>cap --apply-to engineD:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in `const_missing': uninitialized constant WEBrick (NameError) from D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:in `const_missing' from ./engine/config/environment.rb:56 from D:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require' from D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/generators/rails/loader.rb:5:in `load!' from D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/cli.rb:252:in `execute_apply_to!' from D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/cli.rb:223:in `execute!' from D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/cli.rb:12:in `execute!' from D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/capistrano-1.1.0/bin/cap:11 from D:/InstantRails/ruby/bin/cap:18
D:\Source\trunk\engine>
From mortonda at dgrmm.net Thu Apr 13 01:07:40 2006
From: mortonda at dgrmm.net (David Morton)
Date: Thu, 13 Apr 2006 00:07:40 -0500
Subject: [Instantrails-users] uninitialized constant WEBrick
In-Reply-To: <855e4dcf0604121941g93e3488v88ff96314086bcd8@mail.gmail.com>
References: <855e4dcf0604121941g93e3488v88ff96314086bcd8@mail.gmail.com>
Message-ID: <443DDC9C.40609@dgrmm.net>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Tim Uckun wrote:
> When attempting to do various things like cap or rake migrate I get anuninitialized constant WEBrick error. Does anybody what could becausing this? A transcript is attached below.
>
> D:\Source\trunk\engine>lsengine gems install_gems.rb
> D:\Source\trunk\engine>cap --apply-to engineD:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in `const_missing': uninitialized constant WEBrick (NameError) from D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:in `const_missing' from ./engine/config/environment.rb:56 from D:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require' from D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/generators/rails/loader.rb:5:in `load!' from D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/cli.rb:252:in `execute_apply_to!' from D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/cli.rb:223:in `execute!' from D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/cli.rb:12:in `execute!' from D:/InstantR
ai!
> ls/ruby/lib/ruby/gems/1.8/gems/capistrano-1.1.0/bin/cap:11 from D:/InstantRails/ruby/bin/cap:18
> D:\Source\trunk\engine>
I think you are running command outside of the usual instantrails environment,
So it may not be picking up the right path... I think there are some
environment variables that need to be set.
Anyone else have more info on that? I'm dead tired right now...
- --
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
iD8DBQFEPdycSIxC85HZHLMRAlTpAKCIr8Wmeu1N+W7JVSU6CUFgxzRCQACdE9PO
VZFE0ulhLgW5JOVlZ3wPuhQ=
=pkGK
-----END PGP SIGNATURE-----
From curt.hibbs at gmail.com Thu Apr 13 06:55:20 2006
From: curt.hibbs at gmail.com (Curt Hibbs)
Date: Thu, 13 Apr 2006 05:55:20 -0500
Subject: [Instantrails-users] uninitialized constant WEBrick
In-Reply-To: <443DDC9C.40609@dgrmm.net>
References: <855e4dcf0604121941g93e3488v88ff96314086bcd8@mail.gmail.com>
<443DDC9C.40609@dgrmm.net>
Message-ID: <31d15f490604130355y5cd3d4b4u6b29dd251384a687@mail.gmail.com>
On 4/13/06, David Morton wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Tim Uckun wrote:
> > When attempting to do various things like cap or rake migrate I get
> anuninitialized constant WEBrick error. Does anybody what could becausing
> this? A transcript is attached below.
> >
> > D:\Source\trunk\engine>lsengine gems
> install_gems.rb
> > D:\Source\trunk\engine>cap --apply-to
> engineD:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in
> `const_missing': uninitialized constant WEBrick (NameError) from
> D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:in
> `const_missing' from ./engine/config/environment.rb:56 from
> D:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
> `require' from
> D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/generators/rails/loader.rb:5:in
> `load!' from D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/capistrano-
> 1.1.0/lib/capistrano/cli.rb:252:in `execute_apply_to!' from
> D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/cli.rb:223:in
> `execute!' from
> D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/cli.rb:12:in
> `execute!' from D:/InstantR
> ai!
> > ls/ruby/lib/ruby/gems/1.8/gems/capistrano-1.1.0/bin/cap:11 from
> D:/InstantRails/ruby/bin/cap:18
> > D:\Source\trunk\engine>
>
> I think you are running command outside of the usual instantrails
> environment,
> So it may not be picking up the right path... I think there are some
> environment variables that need to be set.
>
> Anyone else have more info on that? I'm dead tired right now...
>
There was something similar that was a reported bug in Rails 1.1 (or 1.1.1)
but I believe that was a "redefined" contant error, not "uninitialized". Its
probably not related, but I mention it just in case. That particular problem
is fixed in Rails 1.1.2 (which is in Instant Rails 1.3).
Curt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060413/d8c1b3c5/attachment.htm
From jim at biacreations.com Thu Apr 13 18:52:36 2006
From: jim at biacreations.com (Jim Geurts)
Date: Thu, 13 Apr 2006 17:52:36 -0500
Subject: [Instantrails-users] Setup fastcgi to run automatically
Message-ID: <24bf11950604131552w1e21d999h4a10fc2c9cabc2dc@mail.gmail.com>
Hi all,
Is there a way to have fastcgi start automatically? For example, if my
server decides to reboot, I would like instant rails and fast cgi to start
automatically when the server comes back up.
Thanks
Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060413/5561587d/attachment.htm
From mortonda at dgrmm.net Thu Apr 13 22:29:58 2006
From: mortonda at dgrmm.net (David Morton)
Date: Thu, 13 Apr 2006 21:29:58 -0500
Subject: [Instantrails-users] Setup fastcgi to run automatically
In-Reply-To: <24bf11950604131552w1e21d999h4a10fc2c9cabc2dc@mail.gmail.com>
References: <24bf11950604131552w1e21d999h4a10fc2c9cabc2dc@mail.gmail.com>
Message-ID: <443F0926.8040604@dgrmm.net>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jim Geurts wrote:
> Hi all,
>
> Is there a way to have fastcgi start automatically? For example, if my
> server decides to reboot, I would like instant rails and fast cgi to
> start automatically when the server comes back up.
Well, IR doesn't use fastcgi... Maybe you mean SCGI. I don't think we have
gotten it to work as a service yet, but the upcoming mongrel server appears to
have the support we need.
Coming soon(ish)! (or later?)
- --
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
iD8DBQFEPwkmSIxC85HZHLMRAoe5AJ9U7v5LOK1Y3kp8uoGQ+ej+JMXABwCdERTn
joZ7BnLqkttjPxUefhRVBA0=
=qBih
-----END PGP SIGNATURE-----
From curt.hibbs at gmail.com Thu Apr 13 22:58:44 2006
From: curt.hibbs at gmail.com (Curt Hibbs)
Date: Thu, 13 Apr 2006 21:58:44 -0500
Subject: [Instantrails-users] Setup fastcgi to run automatically
In-Reply-To: <24bf11950604131552w1e21d999h4a10fc2c9cabc2dc@mail.gmail.com>
References: <24bf11950604131552w1e21d999h4a10fc2c9cabc2dc@mail.gmail.com>
Message-ID: <31d15f490604131958n7d4da7b9m57913c921c44fe4c@mail.gmail.com>
On 4/13/06, Jim Geurts wrote:
>
> Hi all,
>
> Is there a way to have fastcgi start automatically? For example, if my
> server decides to reboot, I would like instant rails and fast cgi to start
> automatically when the server comes back up.
>
You can created a batch file to start the SCGI server for you app and put a
shortcut to it in you startup folder.
The batch file would live in you rails app's root directory and should first
put the IR's ruby\bin directory on the path and then run the command:
ruby scgi_service
Curt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060413/7507b9ee/attachment.htm
From jim at biacreations.com Thu Apr 13 23:05:46 2006
From: jim at biacreations.com (Jim Geurts)
Date: Thu, 13 Apr 2006 22:05:46 -0500
Subject: [Instantrails-users] Setup fastcgi to run automatically
In-Reply-To: <31d15f490604131958n7d4da7b9m57913c921c44fe4c@mail.gmail.com>
References: <24bf11950604131552w1e21d999h4a10fc2c9cabc2dc@mail.gmail.com>
<31d15f490604131958n7d4da7b9m57913c921c44fe4c@mail.gmail.com>
Message-ID: <24bf11950604132005w382877b6k3e5b58a1b110fde5@mail.gmail.com>
Cool, that should work as a work-around for now.
Is there any desire to turning InstantRails into a production quality tool?
It seems like it's primarily aimed at developers right now.
On 4/13/06, Curt Hibbs wrote:
>
> On 4/13/06, Jim Geurts wrote:
> >
> > Hi all,
> >
> > Is there a way to have fastcgi start automatically? For example, if my
> > server decides to reboot, I would like instant rails and fast cgi to start
> > automatically when the server comes back up.
> >
>
> You can created a batch file to start the SCGI server for you app and put
> a shortcut to it in you startup folder.
>
> The batch file would live in you rails app's root directory and should
> first put the IR's ruby\bin directory on the path and then run the command:
>
> ruby scgi_service
>
> Curt
>
> _______________________________________________
> 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/20060413/07a94374/attachment.htm
From timuckun at gmail.com Sat Apr 15 00:59:15 2006
From: timuckun at gmail.com (Tim Uckun)
Date: Sat, 15 Apr 2006 16:59:15 +1200
Subject: [Instantrails-users] uninitialized constant WEBrick
In-Reply-To: <31d15f490604130355y5cd3d4b4u6b29dd251384a687@mail.gmail.com>
References: <855e4dcf0604121941g93e3488v88ff96314086bcd8@mail.gmail.com>
<443DDC9C.40609@dgrmm.net>
<31d15f490604130355y5cd3d4b4u6b29dd251384a687@mail.gmail.com>
Message-ID: <855e4dcf0604142159m5cc05cc9l9f7ce4ce4350e0c@mail.gmail.com>
I also wanted to point out that I had the exact same error message onmy linux machine running CentOS and ruby 1.84 + rails 1.1.x.
I won't have access to my computer (at work) till tuesday but is theresome environment setting missing or something?
It's weird that I would have the exact same problem with both linux and windows.
On 4/13/06, Curt Hibbs wrote:> On 4/13/06, David Morton wrote:> > -----BEGIN PGP SIGNED MESSAGE-----> > Hash: SHA1> >> > Tim Uckun wrote:> > > When attempting to do various things like cap or rake migrate I get> anuninitialized constant WEBrick error. Does anybody what could becausing> this? A transcript is attached below.> > >> > > D:\Source\trunk\engine>lsengine gems> install_gems.rb> > > D:\Source\trunk\engine>cap --apply-to> engineD:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in> `const_missing': uninitialized constant WEBrick (NameError) from> D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-> 1.3.1/lib/active_support/dependencies.rb:131:in> `const_missing' from> ./engine/config/environment.rb:56 from> D:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in> `require' from> D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/capistrano-> 1.1.0/lib/capistrano/generators/rails/loader.rb:5:in> `load!' from> D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/cli.rb:252:in> `execute_apply_to!' from> D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/capistrano-> 1.1.0/lib/capistrano/cli.rb:223:in `execute!' from> D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/capistrano-1.1.0/lib/capistrano/cli.rb:12:in> `execute!' from D:/InstantR> > ai!> > > ls/ruby/lib/ruby/gems/1.8/gems/capistrano-> 1.1.0/bin/cap:11 from D:/InstantRails/ruby/bin/cap:18> > > D:\Source\trunk\engine>> >> > I think you are running command outside of the usual instantrails> environment,> > So it may not be picking up the right path... I think there are some> > environment variables that need to be set.> >> > Anyone else have more info on that? I'm dead tired right now...> >>> There was something similar that was a reported bug in Rails 1.1 (or 1.1.1)> but I believe that was a "redefined" contant error, not "uninitialized". Its> probably not related, but I mention it just in case. That particular problem> is fixed in Rails 1.1.2 (which is in Instant Rails 1.3).>> Curt>>>>> _______________________________________________> Instantrails-users mailing list> Instantrails-users at rubyforge.org> http://rubyforge.org/mailman/listinfo/instantrails-users>>
From timuckun at gmail.com Tue Apr 18 00:13:31 2006
From: timuckun at gmail.com (Tim Uckun)
Date: Tue, 18 Apr 2006 16:13:31 +1200
Subject: [Instantrails-users] No spiner script.
Message-ID: <855e4dcf0604172113s6df55d55u300907a7232cf7a5@mail.gmail.com>
Hey guys.
I figured out what was causing my undefiend webrick problem, it was aproblem with RAGI which is a library used with asterisk.
Having gotten past that point I am now trying to use capistrano and amfinding out that for some reason there is no script/spinner script. Reaper and Spawner are there but not spinner. Is there somethingspecial I have to do in order to install spinner?
Thanks.
From mortonda at dgrmm.net Tue Apr 18 07:50:59 2006
From: mortonda at dgrmm.net (David Morton)
Date: Tue, 18 Apr 2006 06:50:59 -0500
Subject: [Instantrails-users] No spiner script.
In-Reply-To: <855e4dcf0604172113s6df55d55u300907a7232cf7a5@mail.gmail.com>
References: <855e4dcf0604172113s6df55d55u300907a7232cf7a5@mail.gmail.com>
Message-ID: <4444D2A3.5060509@dgrmm.net>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Tim Uckun wrote:
> Hey guys.
> I figured out what was causing my undefiend webrick problem, it was aproblem with RAGI which is a library used with asterisk.
> Having gotten past that point I am now trying to use capistrano and amfinding out that for some reason there is no script/spinner script. Reaper and Spawner are there but not spinner. Is there somethingspecial I have to do in order to install spinner?
I thought I read on the rails 1.1 announcement that spinner is no longer
available. I can't find it now.
It was replaced by a parameter to one of the other scripts...
- --
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
iD8DBQFERNKjSIxC85HZHLMRAgTIAJ4g5xXenhg+7OY2tx2hJuBt32Q8JQCgn5++
5IvMpXqqfDOaCmbcOZWHxBU=
=MqpM
-----END PGP SIGNATURE-----
From timuckun at gmail.com Tue Apr 18 08:11:25 2006
From: timuckun at gmail.com (Tim Uckun)
Date: Wed, 19 Apr 2006 00:11:25 +1200
Subject: [Instantrails-users] No spiner script.
In-Reply-To: <4444D2A3.5060509@dgrmm.net>
References: <855e4dcf0604172113s6df55d55u300907a7232cf7a5@mail.gmail.com>
<4444D2A3.5060509@dgrmm.net>
Message-ID: <855e4dcf0604180511x69937df8n754e9f75c734f674@mail.gmail.com>
Interesting. It seems they haven't upgraded capistrano then becausethe scripts fail when attempting to deploy.
In fact I spent all of yesterday at hotel capistrano banging my headagainst that wall and cursing the heavens.
I guess I will wait till they upgrade capistrano and the documentation then.
On 4/18/06, David Morton wrote:> -----BEGIN PGP SIGNED MESSAGE-----> Hash: SHA1>> Tim Uckun wrote:> > Hey guys.> > I figured out what was causing my undefiend webrick problem, it was aproblem with RAGI which is a library used with asterisk.> > Having gotten past that point I am now trying to use capistrano and amfinding out that for some reason there is no script/spinner script. Reaper and Spawner are there but not spinner. Is there somethingspecial I have to do in order to install spinner?>> I thought I read on the rails 1.1 announcement that spinner is no longer> available. I can't find it now.>> It was replaced by a parameter to one of the other scripts...>> - --> 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>> iD8DBQFERNKjSIxC85HZHLMRAgTIAJ4g5xXenhg+7OY2tx2hJuBt32Q8JQCgn5++> 5IvMpXqqfDOaCmbcOZWHxBU=> =MqpM> -----END PGP SIGNATURE-----> _______________________________________________> Instantrails-users mailing list> Instantrails-users at rubyforge.org> http://rubyforge.org/mailman/listinfo/instantrails-users>
From mortonda at dgrmm.net Tue Apr 18 08:56:12 2006
From: mortonda at dgrmm.net (David Morton)
Date: Tue, 18 Apr 2006 07:56:12 -0500
Subject: [Instantrails-users] No spiner script.
In-Reply-To: <855e4dcf0604180511x69937df8n754e9f75c734f674@mail.gmail.com>
References: <855e4dcf0604172113s6df55d55u300907a7232cf7a5@mail.gmail.com> <4444D2A3.5060509@dgrmm.net>
<855e4dcf0604180511x69937df8n754e9f75c734f674@mail.gmail.com>
Message-ID: <4444E1EC.4010705@dgrmm.net>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Tim Uckun wrote:
> Interesting. It seems they haven't upgraded capistrano then becausethe scripts fail when attempting to deploy.
> In fact I spent all of yesterday at hotel capistrano banging my headagainst that wall and cursing the heavens.
> I guess I will wait till they upgrade capistrano and the documentation then.
from the changelog:
Added -r/?repeat option to script/process/spawner that offers the same loop
protection as the spinner did. This deprecates the script/process/spinner, so
it?s no longer included in the default Rails skeleton, but still available for
backwards compatibility 3461 [ror at andreas-s.net]
So I think you can replace spinner with spawner -r
- --
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
iD8DBQFEROHsSIxC85HZHLMRAphOAJ43yOpUX0WyLg9rquLlj049Gid5PQCfXDqz
Wv+c1yfbfF+4Vr9B4hDEcsw=
=U0Jw
-----END PGP SIGNATURE-----
From timuckun at gmail.com Tue Apr 18 17:05:16 2006
From: timuckun at gmail.com (Tim Uckun)
Date: Wed, 19 Apr 2006 09:05:16 +1200
Subject: [Instantrails-users] No spiner script.
In-Reply-To: <4444E1EC.4010705@dgrmm.net>
References: <855e4dcf0604172113s6df55d55u300907a7232cf7a5@mail.gmail.com>
<4444D2A3.5060509@dgrmm.net>
<855e4dcf0604180511x69937df8n754e9f75c734f674@mail.gmail.com>
<4444E1EC.4010705@dgrmm.net>
Message-ID: <855e4dcf0604181405g3767f55bv1922b90b4816f441@mail.gmail.com>
OK thanks.
It's just that I don't actually use the spinner, I was just followingthe docs on the web site. Today I think I will start from scratch andtry again.
On 4/19/06, David Morton wrote:> -----BEGIN PGP SIGNED MESSAGE-----> Hash: SHA1>> Tim Uckun wrote:> > Interesting. It seems they haven't upgraded capistrano then becausethe scripts fail when attempting to deploy.> > In fact I spent all of yesterday at hotel capistrano banging my headagainst that wall and cursing the heavens.> > I guess I will wait till they upgrade capistrano and the documentation then.>> from the changelog:>> Added -r/?repeat option to script/process/spawner that offers the same loop> protection as the spinner did. This deprecates the script/process/spinner, so> it?s no longer included in the default Rails skeleton, but still available for> backwards compatibility 3461 [ror at andreas-s.net]>>> So I think you can replace spinner with spawner -r>> - --> 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>> iD8DBQFEROHsSIxC85HZHLMRAphOAJ43yOpUX0WyLg9rquLlj049Gid5PQCfXDqz> Wv+c1yfbfF+4Vr9B4hDEcsw=> =U0Jw> -----END PGP SIGNATURE-----> _______________________________________________> Instantrails-users mailing list> Instantrails-users at rubyforge.org> http://rubyforge.org/mailman/listinfo/instantrails-users>
From fingersyancey at yahoo.com Wed Apr 19 04:28:30 2006
From: fingersyancey at yahoo.com (Stephen Pickering)
Date: Wed, 19 Apr 2006 01:28:30 -0700 (PDT)
Subject: [Instantrails-users] Newbie How to savefile as .rhtml
Message-ID: <20060419082830.83218.qmail@web50302.mail.yahoo.com>
Hi,
I have Instant Rail and am working through the Agile
web development Book and stuck in a really simple
thing have tried various means to get around without
success. Running Windows XP Home 2002.
How can I save a file as a rhtml?
I have textpad and the text editor with rail and
neither let me save as rhtml
Came across a add in for ruby on rail for textpad
still not working. tried to mess with the windows file
ext controller still not able to save file as rhtml
file type.
I know there is an easy answer because I have checked
the archives and from the headings cannot find a post
with this problem.
Please help
Thanks,
Stephen
From mortonda at dgrmm.net Wed Apr 19 08:57:34 2006
From: mortonda at dgrmm.net (David Morton)
Date: Wed, 19 Apr 2006 07:57:34 -0500
Subject: [Instantrails-users] Newbie How to savefile as .rhtml
In-Reply-To: <20060419082830.83218.qmail@web50302.mail.yahoo.com>
References: <20060419082830.83218.qmail@web50302.mail.yahoo.com>
Message-ID: <444633BE.8090300@dgrmm.net>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Stephen Pickering wrote:
> I have textpad and the text editor with rail and
> neither let me save as rhtml
My favorite editor for rails is radrails, which runs very well on windows.
Well, more than an editor, it's more of an IDE :)
http://www.radrails.org/
- --
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
iD8DBQFERjO+SIxC85HZHLMRAoUGAJ0Up/72HjJH5rJKr11FG5QknJCWoACgorBs
S70idL7VTcD7/CXq2+aIygA=
=lTkQ
-----END PGP SIGNATURE-----
From curt.hibbs at gmail.com Wed Apr 19 09:03:05 2006
From: curt.hibbs at gmail.com (Curt Hibbs)
Date: Wed, 19 Apr 2006 08:03:05 -0500
Subject: [Instantrails-users] Newbie How to savefile as .rhtml
In-Reply-To: <444633BE.8090300@dgrmm.net>
References: <20060419082830.83218.qmail@web50302.mail.yahoo.com>
<444633BE.8090300@dgrmm.net>
Message-ID: <31d15f490604190603o7429a1e9w97161bf503372be@mail.gmail.com>
On 4/19/06, David Morton wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Stephen Pickering wrote:
>
> > I have textpad and the text editor with rail and
> > neither let me save as rhtml
>
> My favorite editor for rails is radrails, which runs very well on windows.
> Well, more than an editor, it's more of an IDE :)
>
> http://www.radrails.org/
>
I can second that opinion.. RadRails is very good (and, of course, handles
rhtml files very well)!
Curt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060419/64682980/attachment.htm
From heikki74 at gmail.com Wed Apr 19 09:14:27 2006
From: heikki74 at gmail.com (=?ISO-8859-1?Q?Heikki_Yl=F6nen?=)
Date: Wed, 19 Apr 2006 16:14:27 +0300
Subject: [Instantrails-users] Newbie How to savefile as .rhtml
In-Reply-To: <31d15f490604190603o7429a1e9w97161bf503372be@mail.gmail.com>
References: <20060419082830.83218.qmail@web50302.mail.yahoo.com>
<444633BE.8090300@dgrmm.net>
<31d15f490604190603o7429a1e9w97161bf503372be@mail.gmail.com>
Message-ID: <9c18518b0604190614t1cac1ecfr4b1b25e34e08baeb@mail.gmail.com>
RadRails here, too.
2006/4/19, Curt Hibbs :
>
> On 4/19/06, David Morton wrote:
> >
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Stephen Pickering wrote:
> >
> > > I have textpad and the text editor with rail and
> > > neither let me save as rhtml
> >
> > My favorite editor for rails is radrails, which runs very well on
> > windows.
> > Well, more than an editor, it's more of an IDE :)
> >
> > http://www.radrails.org/
> >
>
> I can second that opinion.. RadRails is very good (and, of course, handles
> rhtml files very well)!
>
> Curt
>
> _______________________________________________
> Instantrails-users mailing list
> Instantrails-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/instantrails-users
>
>
--
Heikki
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060419/8a313d17/attachment.htm
From fingersyancey at yahoo.com Wed Apr 19 09:46:16 2006
From: fingersyancey at yahoo.com (Stephen Pickering)
Date: Wed, 19 Apr 2006 06:46:16 -0700 (PDT)
Subject: [Instantrails-users] re Newbie How to savefile as .rhtml
Message-ID: <20060419134617.94916.qmail@web50313.mail.yahoo.com>
Hi,
Thanks, I am downloading now.
Stephen
From curt.hibbs at gmail.com Wed Apr 19 09:51:22 2006
From: curt.hibbs at gmail.com (Curt Hibbs)
Date: Wed, 19 Apr 2006 08:51:22 -0500
Subject: [Instantrails-users] re Newbie How to savefile as .rhtml
In-Reply-To: <20060419134617.94916.qmail@web50313.mail.yahoo.com>
References: <20060419134617.94916.qmail@web50313.mail.yahoo.com>
Message-ID: <31d15f490604190651k5c2a164br83c0b40af55fed57@mail.gmail.com>
On 4/19/06, Stephen Pickering wrote:
>
> Hi,
>
> Thanks, I am downloading now.
>
> Stephen
>
Just to set your expectations appropriately...
If you haven't used Eclipse before (RadRails is built on top of Eclipse), be
prepared to go through a learning curve. But rest assured, it will be well
worth it.
Curt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060419/7dea7de6/attachment-0001.htm
From wfroelich at dbsnow.com Wed Apr 19 09:52:50 2006
From: wfroelich at dbsnow.com (William (Bill) Froelich)
Date: Wed, 19 Apr 2006 08:52:50 -0500
Subject: [Instantrails-users] Newbie How to savefile as .rhtml
Message-ID:
While I am only getting started with RadRails myself (and use Notepad++
as my editor). Saving rhtml files from textpad is certainly possible.
When you save your file just type the filename as myview.rhtml and
change the Save as type to All Files (*.*). This will cause textpad to
not automatically append any extension on the file. Then when editing
the file later you should be good to go.
Hope this helps!
--Bill
-----Original Message-----
From: instantrails-users-bounces at rubyforge.org
[mailto:instantrails-users-bounces at rubyforge.org] On Behalf Of Stephen
Pickering
Sent: Wednesday, April 19, 2006 3:29 AM
To: instantrails-users at rubyforge.org
Subject: [Instantrails-users] Newbie How to savefile as .rhtml
Hi,
I have Instant Rail and am working through the Agile web development
Book and stuck in a really simple thing have tried various means to get
around without success. Running Windows XP Home 2002.
How can I save a file as a rhtml?
I have textpad and the text editor with rail and neither let me save as
rhtml
Came across a add in for ruby on rail for textpad still not working.
tried to mess with the windows file ext controller still not able to
save file as rhtml file type.
I know there is an easy answer because I have checked the archives and
from the headings cannot find a post with this problem.
Please help
Thanks,
Stephen
_______________________________________________
Instantrails-users mailing list
Instantrails-users at rubyforge.org
http://rubyforge.org/mailman/listinfo/instantrails-users
From curt.hibbs at gmail.com Wed Apr 19 10:59:43 2006
From: curt.hibbs at gmail.com (Curt Hibbs)
Date: Wed, 19 Apr 2006 09:59:43 -0500
Subject: [Instantrails-users] Newbie How to savefile as .rhtml
In-Reply-To:
References:
Message-ID: <31d15f490604190759n565bfee8tac2da6383cb71e4f@mail.gmail.com>
I also use Notepad++ as my standard editor.
Curt
On 4/19/06, William (Bill) Froelich wrote:
>
> While I am only getting started with RadRails myself (and use Notepad++
> as my editor). Saving rhtml files from textpad is certainly possible.
>
> When you save your file just type the filename as myview.rhtml and
> change the Save as type to All Files (*.*). This will cause textpad to
> not automatically append any extension on the file. Then when editing
> the file later you should be good to go.
>
> Hope this helps!
>
> --Bill
>
> -----Original Message-----
> From: instantrails-users-bounces at rubyforge.org
> [mailto:instantrails-users-bounces at rubyforge.org] On Behalf Of Stephen
> Pickering
> Sent: Wednesday, April 19, 2006 3:29 AM
> To: instantrails-users at rubyforge.org
> Subject: [Instantrails-users] Newbie How to savefile as .rhtml
>
> Hi,
>
> I have Instant Rail and am working through the Agile web development
> Book and stuck in a really simple thing have tried various means to get
> around without success. Running Windows XP Home 2002.
>
> How can I save a file as a rhtml?
>
> I have textpad and the text editor with rail and neither let me save as
> rhtml
>
> Came across a add in for ruby on rail for textpad still not working.
> tried to mess with the windows file ext controller still not able to
> save file as rhtml file type.
>
> I know there is an easy answer because I have checked the archives and
> from the headings cannot find a post with this problem.
> Please help
>
> Thanks,
>
> Stephen
>
> _______________________________________________
> 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/20060419/03d267c6/attachment.htm
From timuckun at gmail.com Wed Apr 19 17:09:27 2006
From: timuckun at gmail.com (Tim Uckun)
Date: Thu, 20 Apr 2006 09:09:27 +1200
Subject: [Instantrails-users] Newbie How to savefile as .rhtml
In-Reply-To: <31d15f490604190759n565bfee8tac2da6383cb71e4f@mail.gmail.com>
References:
<31d15f490604190759n565bfee8tac2da6383cb71e4f@mail.gmail.com>
Message-ID: <855e4dcf0604191409x789dc36eo81128e582c248ace@mail.gmail.com>
You might want to give Jedit a try too. I find it very useful as aswiss army knife of editors. It's not that useful out of the box butit had plug ins for a thousand things.
On 4/20/06, Curt Hibbs wrote:> I also use Notepad++ as my standard editor.>> Curt>>> On 4/19/06, William (Bill) Froelich wrote:> > While I am only getting started with RadRails myself (and use Notepad++> > as my editor). Saving rhtml files from textpad is certainly possible.> >> > When you save your file just type the filename as myview.rhtml and> > change the Save as type to All Files (*.*). This will cause textpad to> > not automatically append any extension on the file. Then when editing> > the file later you should be good to go.> >> > Hope this helps!> >> > --Bill> >> > -----Original Message-----> > From: instantrails-users-bounces at rubyforge.org> > [mailto:instantrails-users-bounces at rubyforge.org] On> Behalf Of Stephen> > Pickering> > Sent: Wednesday, April 19, 2006 3:29 AM> > To: instantrails-users at rubyforge.org> > Subject: [Instantrails-users] Newbie How to savefile as .rhtml> >> > Hi,> >> > I have Instant Rail and am working through the Agile web development> > Book and stuck in a really simple thing have tried various means to get> > around without success. Running Windows XP Home 2002.> >> > How can I save a file as a rhtml?> >> > I have textpad and the text editor with rail and neither let me save as> > rhtml> >> > Came across a add in for ruby on rail for textpad still not working.> > tried to mess with the windows file ext controller still not able to> > save file as rhtml file type.> >> > I know there is an easy answer because I have checked the archives and> > from the headings cannot find a post with this problem.> > Please help> >> > Thanks,> >> > Stephen> >> > _______________________________________________> > 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> >>>> _______________________________________________> Instantrails-users mailing list> Instantrails-users at rubyforge.org> http://rubyforge.org/mailman/listinfo/instantrails-users>>
From Steve.Debaun at seminis.com Wed Apr 19 17:12:05 2006
From: Steve.Debaun at seminis.com (Debaun, Steve)
Date: Wed, 19 Apr 2006 14:12:05 -0700
Subject: [Instantrails-users] Newbie How to savefile as .rhtml
Message-ID:
I use arachno ruby, but its not free. But its cheap.
sd
-----Original Message-----
From: instantrails-users-bounces at rubyforge.org
[mailto:instantrails-users-bounces at rubyforge.org] On Behalf Of Tim Uckun
Sent: Wednesday, April 19, 2006 2:09 PM
To: curt at hibbs.com; instantrails-users at rubyforge.org
Subject: Re: [Instantrails-users] Newbie How to savefile as .rhtml
You might want to give Jedit a try too. I find it very useful as aswiss army
knife of editors. It's not that useful out of the box butit had plug ins for
a thousand things.
On 4/20/06, Curt Hibbs wrote:> I also use Notepad++
as my standard editor.>> Curt>>> On 4/19/06, William (Bill) Froelich
wrote:> > While I am only getting started with
RadRails myself (and use Notepad++> > as my editor). Saving rhtml files
from textpad is certainly possible.> >> > When you save your file just type
the filename as myview.rhtml and> > change the Save as type to All Files
(*.*). This will cause textpad to> > not automatically append any extension
on the file. Then when editing> > the file later you should be good to go.>
>> > Hope this helps!> >> > --Bill> >> > -----Original Message-----> > From:
instantrails-users-bounces at rubyforge.org> >
[mailto:instantrails-users-bounces at rubyforge.org] On> Behalf Of Stephen> >
Pickering> > Sent: Wednesday, April 19, 2006 3:29 AM> > To:
instantrails-users at rubyforge.org> > Subject: [Instantrails-users] Newbie How
to savefile as .rhtml> >> > Hi,> >> > I have Instant Rail and am !
working through the Agile web development> > Book and stuck in a really
simple thing have tried various means to get> > around without success.
Running Windows XP Home 2002.> >> > How can I save a file as a rhtml?> >> >
I have textpad and the text editor with rail and neither let me save as> >
rhtml> >> > Came across a add in for ruby on rail for textpad still not
working.> > tried to mess with the windows file ext controller still not
able to> > save file as rhtml file type.> >> > I know there is an easy
answer because I have checked the archives and> > from the headings cannot
find a post with this problem.> > Please help> >> > Thanks,> >> > Stephen>
>> > _______________________________________________> > 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> >>>>
_______________________________________________> 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
This e-mail message may contain privileged and/or confidential information,
and is intended to be received only by persons entitled to receive such
information. If you have received this e-mail in error, please notify the
sender immediately. Please delete it and all attachments from any servers,
hard drives or any other media. Other use of this e-mail by you is strictly
prohibited.
All e-mails and attachments sent and received are subject to monitoring,
reading and archival by Seminis. The recipient of this e-mail is solely
responsible for checking for the presence of "Viruses" or other "Malware".
Seminis accepts no liability for any damage caused by any such code
transmitted by or accompanying this e-mail or any attachment.
From gsinclair at gmail.com Fri Apr 21 23:02:54 2006
From: gsinclair at gmail.com (Gavin Sinclair)
Date: Sat, 22 Apr 2006 13:02:54 +1000
Subject: [Instantrails-users] Can't run InstantRails.exe
Message-ID:
Hi,
Trying to run InstantRails.exe for the first time, I get a Windows
dialog box with the error message:
Windows cannot access the specified device, path, or file. You may not
have the appropriate permissions to access the item.
That's the *only* thing that happens. The app doesn't start up.
The log file (InstantRails.log) is empty.
The ini file (InstantRails.ini) has the following line:
OldRunningPath=C:\force-path-update
I change that value to various things but it doesn't make a difference.
I've searched the mailing list archives and browsed the Wiki but this
problem appears not to have been reported before.
I am running InstantRails from the following directory: E:\InstantRails
Any advice would be appreciated.
Thanks,
Gavin
From mortonda at dgrmm.net Fri Apr 21 23:59:40 2006
From: mortonda at dgrmm.net (David Morton)
Date: Fri, 21 Apr 2006 22:59:40 -0500
Subject: [Instantrails-users] Can't run InstantRails.exe
In-Reply-To:
References:
Message-ID: <4449AA2C.7010807@dgrmm.net>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Gavin Sinclair wrote:
> I am running InstantRails from the following directory: E:\InstantRails
Is this a USB device?
- --
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
iD8DBQFESaosSIxC85HZHLMRAqrDAJ9YQ5wmTXWa9l7weL51Rve3Pq4RjQCfWbgm
m/g+HO8yVVCGgNM+8ArBPXM=
=eIzG
-----END PGP SIGNATURE-----
From curt.hibbs at gmail.com Sat Apr 22 00:19:14 2006
From: curt.hibbs at gmail.com (Curt Hibbs)
Date: Fri, 21 Apr 2006 23:19:14 -0500
Subject: [Instantrails-users] Can't run InstantRails.exe
In-Reply-To:
References:
Message-ID: <31d15f490604212119s4d3314aau62e2e0501cf85d81@mail.gmail.com>
On 4/21/06, Gavin Sinclair wrote:
>
> Hi,
>
> Trying to run InstantRails.exe for the first time, I get a Windows
> dialog box with the error message:
>
> Windows cannot access the specified device, path, or file. You may not
> have the appropriate permissions to access the item.
>
> That's the *only* thing that happens. The app doesn't start up.
>
> The log file (InstantRails.log) is empty.
>
> The ini file (InstantRails.ini) has the following line:
>
> OldRunningPath=C:\force-path-update
>
> I change that value to various things but it doesn't make a difference.
>
> I've searched the mailing list archives and browsed the Wiki but this
> problem appears not to have been reported before.
>
> I am running InstantRails from the following directory: E:\InstantRails
>
> Any advice would be appreciated.
>
> Thanks,
> Gavin
>
Hmmm... so much for being easy! :-(
I've never seen this happen before (really)! What version of Windows are
you running? Instant Railsis only know to work in Windows 2000 and Windows
XP.
In any case, the InstantRails.exe executable isn't even getting loaded. That
error message says that something in Windows is preventing the exe from
loading.
Do you have administrator privileges with your logged in user? I not sure
that its necessary, but I've never tested it without that.
Curt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060421/941f93ec/attachment.htm
From gsinclair at gmail.com Sat Apr 22 02:19:27 2006
From: gsinclair at gmail.com (Gavin Sinclair)
Date: Sat, 22 Apr 2006 16:19:27 +1000
Subject: [Instantrails-users] Can't run InstantRails.exe
In-Reply-To: <4449AA2C.7010807@dgrmm.net>
References:
<4449AA2C.7010807@dgrmm.net>
Message-ID:
On 4/22/06, David Morton wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Gavin Sinclair wrote:
>
> > I am running InstantRails from the following directory: E:\InstantRails
>
> Is this a USB device?
No, it's a hard drive partition. Nearly all applications are installed there.
C: system
D: data
E: apps
F: temp
All the same hard drive.
Gavin
From gsinclair at gmail.com Sat Apr 22 02:22:23 2006
From: gsinclair at gmail.com (Gavin Sinclair)
Date: Sat, 22 Apr 2006 16:22:23 +1000
Subject: [Instantrails-users] Can't run InstantRails.exe
In-Reply-To: <31d15f490604212119s4d3314aau62e2e0501cf85d81@mail.gmail.com>
References:
<31d15f490604212119s4d3314aau62e2e0501cf85d81@mail.gmail.com>
Message-ID:
On 4/22/06, Curt Hibbs wrote:
> >
> > Trying to run InstantRails.exe for the first time, I get a Windows
> > dialog box with the error message:
> >
> > Windows cannot access the specified device, path, or file. You may not
> > have the appropriate permissions to access the item.
> >
> > That's the *only* thing that happens. The app doesn't start up.
> >
> > The log file (InstantRails.log) is empty.
> >
> > The ini file (InstantRails.ini) has the following line:
> >
> > OldRunningPath=C:\force-path-update
> >
> > I change that value to various things but it doesn't make a difference.
> >
> > I've searched the mailing list archives and browsed the Wiki but this
> > problem appears not to have been reported before.
> >
> > I am running InstantRails from the following directory: E:\InstantRails
> >
> > Any advice would be appreciated.
> >
> > Thanks,
> > Gavin
> >
>
> Hmmm... so much for being easy! :-(
>
> I've never seen this happen before (really)! What version of Windows are
> you running? Instant Railsis only know to work in Windows 2000 and Windows
> XP.
I'm running XP with administrator priveleges and no history of
difficulty getting applications to run :)
> In any case, the InstantRails.exe executable isn't even getting loaded. That
> error message says that something in Windows is preventing the exe from
> loading.
Ah, I didn't realise that.
I'm going to try unpacking the zip file into a different directory,
just for kicks :)
Gavin
From gsinclair at gmail.com Sat Apr 22 02:33:25 2006
From: gsinclair at gmail.com (Gavin Sinclair)
Date: Sat, 22 Apr 2006 16:33:25 +1000
Subject: [Instantrails-users] Can't run InstantRails.exe
In-Reply-To:
References:
Message-ID:
On 4/22/06, Gavin Sinclair wrote:
>
> Trying to run InstantRails.exe for the first time, I get a Windows
> dialog box with the error message:
>
> Windows cannot access the specified device, path, or file. You may not
> have the appropriate permissions to access the item.
I unpacked the zip file again, this time using WinZip instead of
Cygwin's "unzip". It works :)
Silly me. I haven't had problems with using "unzip" before, but it's
probably a line-ending issue.
Cheers,
Gavin
From curt.hibbs at gmail.com Sat Apr 22 03:26:10 2006
From: curt.hibbs at gmail.com (Curt Hibbs)
Date: Sat, 22 Apr 2006 02:26:10 -0500
Subject: [Instantrails-users] Can't run InstantRails.exe
In-Reply-To:
References:
Message-ID: <31d15f490604220026x4b5d3c4aj7f93a984caeb8cf2@mail.gmail.com>
On 4/22/06, Gavin Sinclair wrote:
>
> On 4/22/06, Gavin Sinclair wrote:
> >
> > Trying to run InstantRails.exe for the first time, I get a Windows
> > dialog box with the error message:
> >
> > Windows cannot access the specified device, path, or file. You may
> not
> > have the appropriate permissions to access the item.
>
> I unpacked the zip file again, this time using WinZip instead of
> Cygwin's "unzip". It works :)
>
> Silly me. I haven't had problems with using "unzip" before, but it's
> probably a line-ending issue.
>
> Cheers,
> Gavin
>
Wow... I never would have guessed anything like that!
Curt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060422/77394121/attachment.htm
From gsinclair at gmail.com Mon Apr 24 01:17:35 2006
From: gsinclair at gmail.com (Gavin Sinclair)
Date: Mon, 24 Apr 2006 15:17:35 +1000
Subject: [Instantrails-users] conf_files directory
Message-ID:
Hi,
What is the purpose of the conf_files directory?
Is conf_files/http.conf or apache/conf/httpd.conf the "real" Apache
configuration file in InstantRails?
There are all sorts of Ruby-related commands in conf_files, like
rake.cmd and gemwhich.cmd. These files are also in the ruby/bin
directory, where they conventionally belong.
Cheers,
Gavin
From curt.hibbs at gmail.com Mon Apr 24 01:27:05 2006
From: curt.hibbs at gmail.com (Curt Hibbs)
Date: Mon, 24 Apr 2006 00:27:05 -0500
Subject: [Instantrails-users] conf_files directory
In-Reply-To:
References:
Message-ID: <31d15f490604232227v2e4d44abh2a3cb0e2e0cf2c63@mail.gmail.com>
It could be better organized (this was inhrited from the EasyPHP fork), but
this is a list of all files that contain absolute paths and must be
"relocated" when IR detects that it is running from a new directory.
When IR does this it reads each of these template files, relocates the paths
to the new value, and writes the updated file to its expected location (like
apache\conf for httpd.conf).
Curt
On 4/24/06, Gavin Sinclair wrote:
>
> Hi,
>
> What is the purpose of the conf_files directory?
>
> Is conf_files/http.conf or apache/conf/httpd.conf the "real" Apache
> configuration file in InstantRails?
>
> There are all sorts of Ruby-related commands in conf_files, like
> rake.cmd and gemwhich.cmd. These files are also in the ruby/bin
> directory, where they conventionally belong.
>
> 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/20060424/a7729660/attachment.htm
From gsinclair at gmail.com Mon Apr 24 01:40:06 2006
From: gsinclair at gmail.com (Gavin Sinclair)
Date: Mon, 24 Apr 2006 15:40:06 +1000
Subject: [Instantrails-users] conf_files directory
In-Reply-To: <31d15f490604232227v2e4d44abh2a3cb0e2e0cf2c63@mail.gmail.com>
References:
<31d15f490604232227v2e4d44abh2a3cb0e2e0cf2c63@mail.gmail.com>
Message-ID:
I take it, then, that the files in conf_files are not *used* for
anything? They're just there for the internal workings of
InstantRails?
Note: when you "Edit Apache config file" in the "Edit SCGI settings"
window, you are editing conf_files/httpd.conf, not
apache/conf/httpd.conf. Based on my understanding, this is a bug.
Gavin
On 4/24/06, Curt Hibbs wrote:
> It could be better organized (this was inhrited from the EasyPHP fork), but
> this is a list of all files that contain absolute paths and must be
> "relocated" when IR detects that it is running from a new directory.
>
> When IR does this it reads each of these template files, relocates the paths
> to the new value, and writes the updated file to its expected location (like
> apache\conf for httpd.conf).
>
> Curt
>
>
> On 4/24/06, Gavin Sinclair wrote:
> >
> Hi,
>
> What is the purpose of the conf_files directory?
>
> Is conf_files/http.conf or apache/conf/httpd.conf the "real" Apache
> configuration file in InstantRails?
>
> There are all sorts of Ruby-related commands in conf_files, like
> rake.cmd and gemwhich.cmd. These files are also in the ruby/bin
> directory, where they conventionally belong.
>
> Cheers,
> Gavin
From gsinclair at gmail.com Mon Apr 24 02:12:41 2006
From: gsinclair at gmail.com (Gavin Sinclair)
Date: Mon, 24 Apr 2006 16:12:41 +1000
Subject: [Instantrails-users] Working with SCGI
Message-ID:
Hi folks,
As the "Rolling with Ruby on Instant Rails" tutorial freely admits, it
uses Webrick for simplicity and doesn't bother with Apache.
Where, then, can I get some instructions on getting a new Rails app
working with Apache and SCGI using InstantRails? I didn't see any in
the Wiki.
I followed the steps in InstantRails > Manage Rails Applications >
Configure SCGI Settings, which I summarise as follows:
- choose an SCGI port (I chose 9997)
- edit the Apache config file, using the cookbook and typo virtual
servers as an example (my server name is www.cclocal.com)
- edit the Windows host file
- check to see that config/scgi.yaml has been written
- restart Apache (just in case it wasn't automatically restarted)
- hit the "Start SCGI server" button
That last step launches a DOS box with title
"E:\INSTAN~1\ruby\bin\ruby.exe" but with no output in it.
When I point my browser at www.cclocal.com, what do I see? Title:
"Instant Rails Help"; content: "coming soon!". Not what I wanted!
The relevant bits of config are below. Can anyone see anything wrong
with it and/or offer some advice?
Thanks,
Gavin
=== config/scgi.yaml
---
:host: 127.0.0.1
:password: doruedQ6MyR7o
:port: 9997
:control_url: druby://127.0.0.1:8997
:env: development
:logfile: log/scgi.log
:disable_signals: true
:config: config/scgi.yaml
=== httpd.conf (excerpt)
ServerName www.cclocal.com
# handle all requests through SCGI
SCGIMount /dispatch.fcgi 127.0.0.1:9997
DocumentRoot E:/InstantRails/rails_apps/CrapCollector/public
Options +FollowSymLinks
Order allow,deny
allow from all
AddDefaultCharset utf-8
ErrorDocument 500 /500.html
ErrorDocument 404 /404.html
=== hosts (excerpt)
127.0.0.1 www.cclocal.com
From gsinclair at gmail.com Mon Apr 24 03:29:31 2006
From: gsinclair at gmail.com (Gavin Sinclair)
Date: Mon, 24 Apr 2006 17:29:31 +1000
Subject: [Instantrails-users] More SCGI questions
Message-ID:
Hi folks,
What password does InstantRails set for SCGI?
When I neutered the password in the scgi.yaml file and tried to start
the server on the command line, this is what I got:
$ scgi_ctrl.cmd start
E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/scgi_rails-0.4.3/lib/scgi.rb:597:in
`fork': the fork() function is
unimplemented on this machine (NotImplementedError)
from E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/scgi_rails-0.4.3/lib/scgi.rb:597:in
`start'
[etc.]
So if I can't start it from the command line because of a "fork"
problem, how can InstantRails possibly start it from the GUI?
That said, I *have* run the "cookbook" application that comes with
InstantRails, and I ran it through SCGI. So it is possible...
Cheers,
Gavin
From curt.hibbs at gmail.com Mon Apr 24 10:15:05 2006
From: curt.hibbs at gmail.com (Curt Hibbs)
Date: Mon, 24 Apr 2006 09:15:05 -0500
Subject: [Instantrails-users] Working with SCGI
In-Reply-To:
References:
Message-ID: <31d15f490604240715t71a6ec05q995716e0c69b919b@mail.gmail.com>
WEBrick is still best for development. Transitioning to Apache is good when
you are moving closer to production deployment and you want to develop in an
environment that is similar to the eventual production environment.
Your setup look good to me (I just skimmed it quickly). You could try it
with an empty (blank) password, temporarily, just to make sure there isn't
some sort of problem there.
I'm going to be in meetings all day today, so hopefully someone else can
help out if you're unable to figure it out.
Curt
On 4/24/06, Gavin Sinclair wrote:
>
> Hi folks,
>
> As the "Rolling with Ruby on Instant Rails" tutorial freely admits, it
> uses Webrick for simplicity and doesn't bother with Apache.
>
> Where, then, can I get some instructions on getting a new Rails app
> working with Apache and SCGI using InstantRails? I didn't see any in
> the Wiki.
>
> I followed the steps in InstantRails > Manage Rails Applications >
> Configure SCGI Settings, which I summarise as follows:
>
> - choose an SCGI port (I chose 9997)
> - edit the Apache config file, using the cookbook and typo virtual
> servers as an example (my server name is www.cclocal.com)
> - edit the Windows host file
> - check to see that config/scgi.yaml has been written
> - restart Apache (just in case it wasn't automatically restarted)
> - hit the "Start SCGI server" button
>
> That last step launches a DOS box with title
> "E:\INSTAN~1\ruby\bin\ruby.exe" but with no output in it.
>
> When I point my browser at www.cclocal.com, what do I see? Title:
> "Instant Rails Help"; content: "coming soon!". Not what I wanted!
>
> The relevant bits of config are below. Can anyone see anything wrong
> with it and/or offer some advice?
>
> Thanks,
> Gavin
>
> === config/scgi.yaml
> ---
> :host: 127.0.0.1
> :password: doruedQ6MyR7o
> :port: 9997
> :control_url: druby://127.0.0.1:8997
> :env: development
> :logfile: log/scgi.log
> :disable_signals: true
> :config: config/scgi.yaml
>
>
> === httpd.conf (excerpt)
>
> ServerName www.cclocal.com
> # handle all requests through SCGI
> SCGIMount /dispatch.fcgi 127.0.0.1:9997
> DocumentRoot E:/InstantRails/rails_apps/CrapCollector/public
>
> Options +FollowSymLinks
> Order allow,deny
> allow from all
>
> AddDefaultCharset utf-8
> ErrorDocument 500 /500.html
> ErrorDocument 404 /404.html
>
>
> === hosts (excerpt)
> 127.0.0.1 www.cclocal.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/20060424/d381ed15/attachment-0001.htm
From curt.hibbs at gmail.com Mon Apr 24 10:19:12 2006
From: curt.hibbs at gmail.com (Curt Hibbs)
Date: Mon, 24 Apr 2006 09:19:12 -0500
Subject: [Instantrails-users] More SCGI questions
In-Reply-To:
References:
Message-ID: <31d15f490604240719w2e218e6evff2cd8469195cfdd@mail.gmail.com>
Both of these questions are answered in the FAQ (see #2 and #6):
http://instantrails.rubyforge.org/wiki/wiki.pl?FAQ
Curt
On 4/24/06, Gavin Sinclair wrote:
>
> Hi folks,
>
> What password does InstantRails set for SCGI?
>
> When I neutered the password in the scgi.yaml file and tried to start
> the server on the command line, this is what I got:
>
> $ scgi_ctrl.cmd start
> E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/scgi_rails-0.4.3
> /lib/scgi.rb:597:in
> `fork': the fork() function is
> unimplemented on this machine (NotImplementedError)
> from E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/scgi_rails-0.4.3
> /lib/scgi.rb:597:in
> `start'
> [etc.]
>
> So if I can't start it from the command line because of a "fork"
> problem, how can InstantRails possibly start it from the GUI?
>
> That said, I *have* run the "cookbook" application that comes with
> InstantRails, and I ran it through SCGI. So it is possible...
>
> 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/20060424/3ea6330c/attachment.htm
From ebigelow at agency.com Mon Apr 24 10:54:54 2006
From: ebigelow at agency.com (Erik Bigelow)
Date: Mon, 24 Apr 2006 10:54:54 -0400
Subject: [Instantrails-users] uninstall steps?
Message-ID:
I looked at the FAQ and did a search, but couldn't find anything. Can
anyone tell me what steps I need to take to uninstall this so I can
install the latest?
BTW - Thank you for putting InstantRails together. It's made beginning
in Rails so much easier.
___________________________________________________
This e-mail is intended only for the named person or entity to which
it is addressed and contains valuable business information that is
privileged, confidential and/or otherwise protected from disclosure.
Dissemination, distribution or copying of this e-mail or the
information herein by anyone other than the intended recipient, or
an employee or agent responsible for delivering the message to the
intended recipient, is strictly prohibited. All contents are the
copyright property of Agency.com Ltd., its affiliates or a client of
such agencies. If you are not the intended recipient, you are
nevertheless bound to respect the worldwide legal rights of
Agency.com, its affiliates and its clients. We require that
unintended recipients delete the e-mail and destroy all electronic
copies in their system, retaining no copies in any media. If you
have received this e-mail in error, please immediately notify us via
e-mail to disclaimer at agency.com. We appreciate your cooperation.
We make no warranties as to the accuracy or completeness of this
e-mail and accept no liability for its content or use. Any opinions
expressed in this e-mail are those of the author and do not
necessarily reflect the opinions of Agency.com or any of its
affiliates.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060424/fbacf0ee/attachment.htm
From bill.walton at charter.net Mon Apr 24 11:31:39 2006
From: bill.walton at charter.net (Bill Walton)
Date: Mon, 24 Apr 2006 10:31:39 -0500
Subject: [Instantrails-users] uninstall steps?
References:
Message-ID: <016a01c667b4$2f0ad0d0$6501a8c0@Presario>
Hi Erik,
Erik Bigelow wrote:
> I looked at the FAQ and did a search,
> but couldn't find anything. Can anyone
> tell me what steps I need to take to uninstall
> this so I can install the latest?
You don't need to uninstall InstantRails (IR) because it's not 'installed'
in the typical sense where the System Registry, etc. need to be cleaned up.
If you want to move to the newest version of IR there are two easy options.
Which one you choose will depend....
1) If you want to be able, should you experience a problem with your
application in the new version of IR, to verify that it's an IR problem
rather than a problem with your app, then simply rename your current IR
directory and unzip the new one. I personally use this approach. I have IR
directories named InstantRails-1.0, InstantRails-1.1, and InstantRails-1.3.
When I run into a problem with my app, before I start calling it a bug in
IR, I copy the app directory to the prior version and see if it still occurs
or if it disappears.
2) If you just want to move to the latest version, copy any directories
under /rails_apps that you want to save out of the way, delete that IR
directory, and then copy your app directory (ies) back in. You'll have to
recreate the databases for those apps, but other than that, you'll pick up
right where you left off.
hth,
Bill
From wfroelich at dbsnow.com Mon Apr 24 11:39:45 2006
From: wfroelich at dbsnow.com (William (Bill) Froelich)
Date: Mon, 24 Apr 2006 10:39:45 -0500
Subject: [Instantrails-users] uninstall steps?
Message-ID:
Since InstantRails installs to a self contained directory you really
don't need to uninstall anything. You can simply unpack the latest
version to a new directory and get started.
I currently have four versions installed on my machine mainly because I
haven't gotten around to deleting the old ones yet. After unpacking a
version I always rename the directory to include the version number so I
know exactly which one it is (i.e. c:\InstantRails-1.3 ). Then you can
run the InstantRails.exe file to have it generate the correct config
settings.
Once the new version is installed you can then migrate your stuff to the
new version by following the upgrade instructions
http://instantrails.rubyforge.org/wiki/wiki.pl?How_To_Upgrade
The only other thing you may need to change would be any path changes
you setup that point to the old directory if you always want to run the
latest.
--Bill
________________________________
From: instantrails-users-bounces at rubyforge.org
[mailto:instantrails-users-bounces at rubyforge.org] On Behalf Of Erik
Bigelow
Sent: Monday, April 24, 2006 9:55 AM
To: curt at hibbs.com; instantrails-users at rubyforge.org
Subject: [Instantrails-users] uninstall steps?
I looked at the FAQ and did a search, but couldn't find anything. Can
anyone tell me what steps I need to take to uninstall this so I can
install the latest?
BTW - Thank you for putting InstantRails together. It's made beginning
in Rails so much easier.
___________________________________________________
This e-mail is intended only for the named person or entity to which
it is addressed and contains valuable business information that is
privileged, confidential and/or otherwise protected from disclosure.
Dissemination, distribution or copying of this e-mail or the
information herein by anyone other than the intended recipient, or
an employee or agent responsible for delivering the message to the
intended recipient, is strictly prohibited. All contents are the
copyright property of Agency.com Ltd., its affiliates or a client of
such agencies. If you are not the intended recipient, you are
nevertheless bound to respect the worldwide legal rights of
Agency.com, its affiliates and its clients. We require that
unintended recipients delete the e-mail and destroy all electronic
copies in their system, retaining no copies in any media. If you
have received this e-mail in error, please immediately notify us via
e-mail to disclaimer at agency.com. We appreciate your cooperation.
We make no warranties as to the accuracy or completeness of this
e-mail and accept no liability for its content or use. Any opinions
expressed in this e-mail are those of the author and do not
necessarily reflect the opinions of Agency.com or any of its
affiliates.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060424/fa2dfd77/attachment.htm
From gsinclair at gmail.com Tue Apr 25 02:51:00 2006
From: gsinclair at gmail.com (Gavin Sinclair)
Date: Tue, 25 Apr 2006 16:51:00 +1000
Subject: [Instantrails-users] More SCGI questions
In-Reply-To: <31d15f490604240719w2e218e6evff2cd8469195cfdd@mail.gmail.com>
References:
<31d15f490604240719w2e218e6evff2cd8469195cfdd@mail.gmail.com>
Message-ID:
OK, I see the answer to the second question (it runs scgi_service
instead of scgi_start), but not the answer to the first question
("What password does InstantRails set for SCGI?"). The only talk of
passwords in the FAQ concerns MySQL, not SCGI.
Gavin
On 4/25/06, Curt Hibbs wrote:
> Both of these questions are answered in the FAQ (see #2 and #6):
>
> http://instantrails.rubyforge.org/wiki/wiki.pl?FAQ
>
> Curt
>
>
> On 4/24/06, Gavin Sinclair wrote:
> >
> Hi folks,
>
> What password does InstantRails set for SCGI?
>
> When I neutered the password in the scgi.yaml file and tried to start
> the server on the command line, this is what I got:
>
> $ scgi_ctrl.cmd start
> E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/scgi_rails-0.4.3/lib/scgi.rb:597:in
> `fork': the fork() function is
> unimplemented on this machine (NotImplementedError)
> from
> E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/scgi_rails-
> 0.4.3/lib/scgi.rb:597:in
> `start'
> [etc.]
>
> So if I can't start it from the command line because of a "fork"
> problem, how can InstantRails possibly start it from the GUI?
>
> That said, I *have* run the "cookbook" application that comes with
> InstantRails, and I ran it through SCGI. So it is possible...
>
> 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 bill.walton at charter.net Fri Apr 28 17:13:23 2006
From: bill.walton at charter.net (Bill Walton)
Date: Fri, 28 Apr 2006 16:13:23 -0500
Subject: [Instantrails-users] REXML question
Message-ID: <003701c66b08$9618b5b0$6501a8c0@Presario>
Is REXML included in the InstantRails 1.3 build? Does it work via irb? I'm trying to work through the tutorial at http://www.germane-software.com/software/rexml/docs/tutorial.html and thought I'd try irb at the same time. But right off, I run into the 'unitialized constant Document' error shown below. Any ideas?
Thanks,
Bill
-------------- irb input/output --------------
C:\InstantRails-1.3\rails_apps\sandbox>irb
irb(main):001:0> require "rexml/document"
=> true
irb(main):002:0> file=File.new("public/mydoc.xml")
=> #
irb(main):003:0> doc=Document.new file
NameError: uninitialized constant Document
from (irb):3
irb(main):004:0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060428/dedc70f8/attachment-0001.htm
From curt.hibbs at gmail.com Fri Apr 28 18:03:39 2006
From: curt.hibbs at gmail.com (Curt Hibbs)
Date: Fri, 28 Apr 2006 17:03:39 -0500
Subject: [Instantrails-users] REXML question
In-Reply-To: <003701c66b08$9618b5b0$6501a8c0@Presario>
References: <003701c66b08$9618b5b0$6501a8c0@Presario>
Message-ID: <31d15f490604281503h7c9532dfib21ec2d6c56b9187@mail.gmail.com>
On 4/28/06, Bill Walton wrote:
>
> Is REXML included in the InstantRails 1.3 build? Does it work via irb?
> I'm trying to work through the tutorial at
> http://www.germane-software.com/software/rexml/docs/tutorial.html and
> thought I'd try irb at the same time. But right off, I run into the
> 'unitialized constant Document' error shown below. Any ideas?
>
> Thanks,
> Bill
>
> -------------- irb input/output --------------
> C:\InstantRails-1.3\rails_apps\sandbox>irb
> irb(main):001:0> require "rexml/document"
> => true
> irb(main):002:0> file=File.new("public/mydoc.xml")
> => #
> irb(main):003:0> doc=Document.new file
> NameError: uninitialized constant Document
> from (irb):3
> irb(main):004:0>
>
REXML is inlcuded in Ruby. I just looked at REXML's document.rb file (in
lib\ruby\1.8\xml) and the Document class is defined inside of a module named
REXML. So you need to do this:
doc = REXML::Document.new
Curt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060428/ecd7de9d/attachment.htm
From gsinclair at gmail.com Fri Apr 28 20:47:58 2006
From: gsinclair at gmail.com (Gavin Sinclair)
Date: Sat, 29 Apr 2006 10:47:58 +1000
Subject: [Instantrails-users] REXML question
In-Reply-To: <31d15f490604281503h7c9532dfib21ec2d6c56b9187@mail.gmail.com>
References: <003701c66b08$9618b5b0$6501a8c0@Presario>
<31d15f490604281503h7c9532dfib21ec2d6c56b9187@mail.gmail.com>
Message-ID:
On 4/29/06, Curt Hibbs wrote:
>
> REXML is inlcuded in Ruby. I just looked at REXML's document.rb file (in
> lib\ruby\1.8\xml) and the Document class is defined inside of a module named
> REXML. So you need to do this:
>
> doc = REXML::Document.new
Or
include REXML
doc = Document.new
I don't know if that's a good solution in this case, but it's another
thing you can try!
Gavin
From bill.walton at charter.net Sat Apr 29 10:20:00 2006
From: bill.walton at charter.net (Bill Walton)
Date: Sat, 29 Apr 2006 09:20:00 -0500
Subject: [Instantrails-users] REXML question
References: <003701c66b08$9618b5b0$6501a8c0@Presario>
<31d15f490604281503h7c9532dfib21ec2d6c56b9187@mail.gmail.com>
Message-ID: <00c401c66b98$008dc590$6501a8c0@Presario>
Hi Curt, Gavin;
Thanks for your replies. I've tried both suggestions and, unfortunately, it still gives me errors. I'd really appreciate it if you'd take a look at the irb input / output below and tell me if you can tell what I'm doing wrong. Thanks!
--------------- irb session ---------------
C:\InstantRails-1.3\rails_apps\sandbox>irb
irb(main):001:0> require "rexml/document"
=> true
irb(main):002:0> file=File.new("public/mydoc.xml")
=> #
irb(main):003:0> doc=REXML::Document.new file
=> ... >
[BW] I assume the error message above is referring to Document. One thing I don't understand though is why the 'require' on the first line of input is successful since rexml/document.rb is over in another branch of the directory tree. For now, I'm just assuming irb knows where to find what it needs. It returns true, so I figure it found it. But if irb found document.rb, then why is the 'doc=' line failing?
[BW] So I figured I'd give Gavin's approach a shot.
irb(main):004:0> include REXML
=> Object
irb(main):005:0> doc = Document.new file
NoMethodError: undefined method `[]' for nil:NilClass
from C:/InstantRails-1.3/ruby/lib/ruby/1.8/rexml/source.rb:131:in `initialize'
from C:/InstantRails-1.3/ruby/lib/ruby/1.8/rexml/parsers/baseparser.rb:126:in `stream='
from C:/InstantRails-1.3/ruby/lib/ruby/1.8/rexml/parsers/baseparser.rb:100:in `initialize'
from C:/InstantRails-1.3/ruby/lib/ruby/1.8/rexml/parsers/treeparser.rb:8:in `initialize'
from C:/InstantRails-1.3/ruby/lib/ruby/1.8/rexml/document.rb:178:in `build'
from C:/InstantRails-1.3/ruby/lib/ruby/1.8/rexml/document.rb:45:in `initialize'
from (irb):5
[BW] Hmmm.... That didn't see to make things better ;-( So I tried it without passing in the file argument.
irb(main):006:0> doc=Document.new
=>
[BW] So it definitely looks to me like it's the Document.new that's throwing the error. Any ideas? I sure would appreciate it if you'd try entering these commands on your systems and letting me know if you get any different results. Maybe there's something wrong with my config. I've included the content of "mydoc.xml" below. I put it in the 'public' directory.
Thanks,
Bill
------------------ mydoc.xml ---------------------
Invisibility Cream14.50Makes you invisibleLevitation Salve23.99Levitate yourself for up to 3 hours per applicationBlork and Freen Instameal4.95A tasty meal in a tablet; just add waterGrob winglets3.56Tender winglets of Grob. Just add water
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060429/98863db0/attachment.htm
From mortonda at dgrmm.net Sat Apr 29 11:08:28 2006
From: mortonda at dgrmm.net (David Morton)
Date: Sat, 29 Apr 2006 10:08:28 -0500
Subject: [Instantrails-users] REXML question
In-Reply-To: <00c401c66b98$008dc590$6501a8c0@Presario>
References: <003701c66b08$9618b5b0$6501a8c0@Presario> <31d15f490604281503h7c9532dfib21ec2d6c56b9187@mail.gmail.com>
<00c401c66b98$008dc590$6501a8c0@Presario>
Message-ID: <4453816C.2010108@dgrmm.net>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bill Walton wrote:
> irb(main):003:0> doc=REXML::Document.new file
> => ... >
> [BW] I assume the error message above is referring to
> Document. One thing I don't understand though is why the 'require' on
I don't think that's an error, I think is part of the XML object.
Irb tries to output some descriptive text about the object. So this is normal.
Indeed, I tried a "puts doc" next, and it printed the document.
- --
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
iD8DBQFEU4FsSIxC85HZHLMRAozKAJ0akKo+TjVLGoC1VsRw9e99W77D/gCeJ3zy
T8t/vLmHgZVx+Gt1wSOlPZU=
=Q350
-----END PGP SIGNATURE-----
From curt.hibbs at gmail.com Sat Apr 29 11:52:55 2006
From: curt.hibbs at gmail.com (Curt Hibbs)
Date: Sat, 29 Apr 2006 10:52:55 -0500
Subject: [Instantrails-users] REXML question
In-Reply-To: <4453816C.2010108@dgrmm.net>
References: <003701c66b08$9618b5b0$6501a8c0@Presario>
<31d15f490604281503h7c9532dfib21ec2d6c56b9187@mail.gmail.com>
<00c401c66b98$008dc590$6501a8c0@Presario> <4453816C.2010108@dgrmm.net>
Message-ID: <31d15f490604290852x73e3e7a4rbd6ddda6f3892f94@mail.gmail.com>
On 4/29/06, David Morton wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Bill Walton wrote:
>
> > irb(main):003:0> doc=REXML::Document.new file
> > => ... >
> > [BW] I assume the error message above is referring to
> > Document. One thing I don't understand though is why the 'require' on
>
> I don't think that's an error, I think is part of the XML
> object.
> Irb tries to output some descriptive text about the object. So this is
> normal.
>
> Indeed, I tried a "puts doc" next, and it printed the document.
>
Yes, David is correct. I tried "doc.methods" and got a nice list of all the
REXML Document methods.
Curt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060429/403da6f5/attachment.htm
From bill.walton at charter.net Sat Apr 29 12:40:54 2006
From: bill.walton at charter.net (Bill Walton)
Date: Sat, 29 Apr 2006 11:40:54 -0500
Subject: [Instantrails-users] REXML question
References: <003701c66b08$9618b5b0$6501a8c0@Presario><31d15f490604281503h7c9532dfib21ec2d6c56b9187@mail.gmail.com><00c401c66b98$008dc590$6501a8c0@Presario>
<4453816C.2010108@dgrmm.net>
<31d15f490604290852x73e3e7a4rbd6ddda6f3892f94@mail.gmail.com>
Message-ID: <015001c66bab$af451e40$6501a8c0@Presario>
Curt, David, Gavin;
Thanks guys. I got thrown by the output. It's not shown in the tutorial so I figured it was an error of some sort. You're all right. After reading Gavin's response (because it came in first) I restarted and just kept going and everything works fine. It turns out, though, that the output isn't the only thing irb is outputting that's not in the tutorial. I *hate* it when that happens ;-|
Anyway, now that I can see how it works, I'm on to using RoR to do a little test app. Read in an XML file using REXML, store the contents in the db, then use Builder to write out a copy.
Thanks again,
Bill
----- Original Message -----
From: Curt Hibbs
To: instantrails-users at rubyforge.org
Sent: Saturday, April 29, 2006 10:52 AM
Subject: Re: [Instantrails-users] REXML question
On 4/29/06, David Morton wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bill Walton wrote:
> irb(main):003:0> doc=REXML::Document.new file
> => ... >
> [BW] I assume the error message above is referring to
> Document. One thing I don't understand though is why the 'require' on
I don't think that's an error, I think is part of the XML object.
Irb tries to output some descriptive text about the object. So this is normal.
Indeed, I tried a "puts doc" next, and it printed the document.
Yes, David is correct. I tried "doc.methods" and got a nice list of all the REXML Document methods.
Curt
------------------------------------------------------------------------------
_______________________________________________
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/20060429/c31c6573/attachment-0001.htm
From mortonda at dgrmm.net Sat Apr 29 12:44:48 2006
From: mortonda at dgrmm.net (David Morton)
Date: Sat, 29 Apr 2006 11:44:48 -0500
Subject: [Instantrails-users] REXML question
In-Reply-To: <015001c66bab$af451e40$6501a8c0@Presario>
References: <003701c66b08$9618b5b0$6501a8c0@Presario><31d15f490604281503h7c9532dfib21ec2d6c56b9187@mail.gmail.com><00c401c66b98$008dc590$6501a8c0@Presario> <4453816C.2010108@dgrmm.net> <31d15f490604290852x73e3e7a4rbd6ddda6f3892f94@mail.gmail.com>
<015001c66bab$af451e40$6501a8c0@Presario>
Message-ID: <44539800.9020802@dgrmm.net>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bill Walton wrote:
> Curt, David, Gavin;
>
> Thanks guys. I got thrown by the output. It's not shown in
> the tutorial so I figured it was an error of some sort. You're all
> right. After reading Gavin's response (because it came in first) I
> restarted and just kept going and everything works fine. It turns out,
> though, that the output isn't the only thing irb
> is outputting that's not in the tutorial. I *hate* it when that happens ;-|
Did the tutorial even mention irb? That's a normal side effect of irb. Since it
is interactive, it gives you lots of output. A normal program run from a file
won't have any of that output.
- --
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
iD8DBQFEU5gASIxC85HZHLMRApGqAJ0TJEhUyWIF5C/FBLkgdZFQvnRHmACfSmif
V28LqJhlmP2rg9H7Jo2P/pw=
=/9v1
-----END PGP SIGNATURE-----
From bill.walton at charter.net Sat Apr 29 13:44:43 2006
From: bill.walton at charter.net (Bill Walton)
Date: Sat, 29 Apr 2006 12:44:43 -0500
Subject: [Instantrails-users] REXML question
References: <003701c66b08$9618b5b0$6501a8c0@Presario><31d15f490604281503h7c9532dfib21ec2d6c56b9187@mail.gmail.com><00c401c66b98$008dc590$6501a8c0@Presario> <4453816C.2010108@dgrmm.net> <31d15f490604290852x73e3e7a4rbd6ddda6f3892f94@mail.gmail.com><015001c66bab$af451e40$6501a8c0@Presario>
<44539800.9020802@dgrmm.net>
Message-ID: <015501c66bb4$99f36bb0$6501a8c0@Presario>
Hi David,
David Morton wrote:
>
> Did the tutorial even mention irb? That's a normal
> side effect of irb. Since it is interactive, it gives you
> lots of output. A normal program run from a file
> won't have any of that output.
No, it didn't actually. I guess I inferred that from the box in the article
titled "Accessing Elements". It lookes like command line input / output.
The tutorial's at
http://www.germane-software.com/software/rexml/docs/tutorial.html in case
you want to see. I thought maybe he was using a *nix box or something.
Just a good lesson for me, I guess, re: how to write a tutorial that
confuses an audience of newbies ;-)
Thanks again,
Bill
From gsinclair at gmail.com Sat Apr 29 19:56:14 2006
From: gsinclair at gmail.com (Gavin Sinclair)
Date: Sun, 30 Apr 2006 09:56:14 +1000
Subject: [Instantrails-users] REXML question
In-Reply-To: <015501c66bb4$99f36bb0$6501a8c0@Presario>
References: <003701c66b08$9618b5b0$6501a8c0@Presario>
<31d15f490604281503h7c9532dfib21ec2d6c56b9187@mail.gmail.com>
<00c401c66b98$008dc590$6501a8c0@Presario> <4453816C.2010108@dgrmm.net>
<31d15f490604290852x73e3e7a4rbd6ddda6f3892f94@mail.gmail.com>
<015001c66bab$af451e40$6501a8c0@Presario> <44539800.9020802@dgrmm.net>
<015501c66bb4$99f36bb0$6501a8c0@Presario>
Message-ID:
On 4/30/06, Bill Walton wrote:
> >
> > Did the tutorial even mention irb? That's a normal
> > side effect of irb. Since it is interactive, it gives you
> > lots of output. A normal program run from a file
> > won't have any of that output.
>
> No, it didn't actually. I guess I inferred that from the box in the article
> titled "Accessing Elements". It lookes like command line input / output.
> The tutorial's at
> http://www.germane-software.com/software/rexml/docs/tutorial.html in case
> you want to see. I thought maybe he was using a *nix box or something.
> Just a good lesson for me, I guess, re: how to write a tutorial that
> confuses an audience of newbies ;-)
Don't worry, Bill. Once you've worked through this tutorial and
gained some more experience with how Ruby and IRB work, things like
this won't trouble you anymore. What Sean has done in the tutorial is
use a normal Ruby convention for displaying the (expected) output of
various lines of code. That is:
code
# -> output
or
code # -> output
Many people use => instead of ->, but I prefer the latter, and so does
Sean, apparently.
When showing the expected output, one wants to be brief. You don't
show the output for every single line of code (the doc = Document.new
file output wasn't given because it's part of "uninteresting" setup
code) and you abbreviate the output just to get the point across.
Showing a whole IRB transcript would have helped you but it's too
verbose for the purpose of the tutorial.
The moral of the story? If you think you've hit a snag, investigate.
Copy the following function into your IRB session (or IRB
configuration file -- is it $HOME/_irbrc?):
def hlp(obj=nil) # Note: not "help" which is an IRB reserved word
(I think).
if obj
puts (obj.methods - Object.new.methods).sort
else
puts obj.methods.sort
end
end
Then, if you don't know what an object is (like "doc"),
hlp doc
will list all of doc's methods, except the trivial ones.
The following can also be useful:
doc.class
require 'yaml'
puts doc.to_yaml
Google "irb tips and tricks" for more.
Cheers,
Gavin