Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
rack newb problem w/ 0.9.0
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Tom M  
View profile  
 More options Jan 6, 5:33 pm
From: Tom M <thomas.mack...@gmail.com>
Date: Tue, 6 Jan 2009 14:33:02 -0800 (PST)
Local: Tues, Jan 6 2009 5:33 pm
Subject: rack newb problem w/ 0.9.0
I am trying to upgrade a rack-based project to use 0.9, and am having
a problem w/ the new MIME_TYPE support.  On start up of the app, I get
the following error:

/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/dependencies.rb:102:in `const_missing': uninitialized
constant Rack::File::MIME_TYPES (NameError)

I looked around in the specs, the readme, mime, and utils, and could
not find a definition of this constant.  There were references in
Rack::Mime, but that's it.

On the one hand I suspect there is missing source, but OTOH I suspect
that my rack ignorance may be a better culprit.  Any advice as to what
I am overlooking would be greatly appreciated.

Thanks!
Tom Macklin


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ryan Tomayko  
View profile  
 More options Jan 6, 6:30 pm
From: Ryan Tomayko <r...@tomayko.com>
Date: Tue, 06 Jan 2009 15:30:12 -0800
Local: Tues, Jan 6 2009 6:30 pm
Subject: Re: rack newb problem w/ 0.9.0
On 1/6/09 2:33 PM, Tom M wrote:

> I am trying to upgrade a rack-based project to use 0.9, and am having
> a problem w/ the new MIME_TYPE support.  On start up of the app, I get
> the following error:

Hi Tom,

The MIME_TYPES constant got shuffled around in this release. You might
be able to work around it by adding the following somewhere in your app:

    require 'rack/file'
    class Rack::File
      MIME_TYPES = Hash.new { |hash, key|
        Rack::Mime::MIME_TYPES[".#{key}"] }
    end

(not tested!)

Thanks,
Ryan


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christian Neukirchen  
View profile  
 More options Jan 7, 3:54 am
From: "Christian Neukirchen" <chneukirc...@gmail.com>
Date: Wed, 7 Jan 2009 09:54:01 +0100
Local: Wed, Jan 7 2009 3:54 am
Subject: Re: rack newb problem w/ 0.9.0

Damn, you were right. ;-)

--
Christian Neukirchen  <chneukirc...@gmail.com>  http://chneukirchen.org


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tom M  
View profile  
 More options Jan 7, 1:02 pm
From: Tom M <thomas.mack...@gmail.com>
Date: Wed, 7 Jan 2009 10:02:14 -0800 (PST)
Local: Wed, Jan 7 2009 1:02 pm
Subject: Re: rack newb problem w/ 0.9.0
NP... such is life when we go down the metaprogramming road...

On Jan 7, 3:54 am, "Christian Neukirchen" <chneukirc...@gmail.com>
wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google