Problem with /home/ route

0 views
Skip to first unread message

epoc1000

unread,
Jul 16, 2007, 5:22:13 PM7/16/07
to Joyent Connector Development
I tried now. The main page is loading, but when I try to access /home/
calendar for example, I get an error message: NoMethodError in
AuthenticatedController#home

You have a nil object when you didn't expect it!
The error occurred while evaluating nil.match

#{RAILS_ROOT}/app/controllers/authenticated_controller.rb:70:in `home'

I don't know, why it can't read the path.

Pascal Belloncle

unread,
Jul 16, 2007, 5:37:53 PM7/16/07
to joyent-con...@googlegroups.com
That error seems to indicate that " request.env['REQUEST_PATH']" is nil.  Are you using mongrel?  What's your environment like?

Cheers,
Pascal.
--
http://blog.nanorails.com

 

epoc1000

unread,
Jul 16, 2007, 5:48:24 PM7/16/07
to Joyent Connector Development

On 16 Jul., 23:37, "Pascal Belloncle" <p...@nanorails.com> wrote:

Ok, it's a problem of the environment. When using mongrel everything
works fine. When using my normal setup with lighttpd the /home/ paths
are not working.

luke crawford

unread,
Jul 16, 2007, 6:41:11 PM7/16/07
to Joyent Connector Development
> Ok, it's a problem of the environment. When using mongrel everything
> works fine. When using my normal setup with lighttpd the /home/ paths
> are not working.

fwiw, we do all of our local development with mongrel on os x.

-luke


Mark James Adams

unread,
Jul 16, 2007, 9:29:19 PM7/16/07
to joyent-con...@googlegroups.com
On 7/17/07, luke crawford <luk...@gmail.com> wrote:
> fwiw, we do all of our local development with mongrel on os x.

For local development, using mongrel definitely makes things a whole
lot easier. For people who would otherwise use lighttpd: if you have
the mongrel gem installed, running script/server will automatically
select mongrel as the webserver.

While I am using OS X, my G3 iBook is way underpowered for running
Connector (e.g., with no data in it yet, the Workspace view takes
about 20 seconds to load).

I heard from Scott that Joyent switched to running MySQL in production
a few months ago, although the bootstrap tasks assume postgres (even
going so far as to assume that the postgres user is 'postgres81' as
the MacPorts install sets up by default). Will the technical reasons
for the switch have any impact on development of the open source
version?

--
Mark James Adams
Kyoto Institute of Technology

epoc1000

unread,
Jul 17, 2007, 2:26:49 AM7/17/07
to Joyent Connector Development
Yes, mongrel is working and a good option, but I was wondering, why
the REQUEST_PATH variable isn't available under lighttpd.

Pascal Belloncle

unread,
Jul 17, 2007, 3:28:35 AM7/17/07
to joyent-con...@googlegroups.com
I'm no lighttpd expert but this may be webrick/mongrel specific and you would need an other to disambiguate the request than to use REQUEST_PATH.

Pascal.

On 7/16/07, epoc1000 <sebasti...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages