Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Thin won't load gem tzinfo

#90

I got a rails application with a file in my lib directory containing:

require 'tzinfo'

module TimeConvert
  @@acst = TZInfo::Timezone.get('Australia/Darwin')
  @@aest = TZInfo::Timezone.get('Australia/Sydney')

  def self.acst_to_aest(time)
      @@aest.utc_to_local(@@acst.local_to_utc(time))
  end

end

I got a model in my rails application which includes the module TimeConvert.

When I launch my rails application using thin (thin start), when reaching a page using this model, I get the error

no such file to load -- tzinfo

If I launch my rails application using mongrel (with script/server), my application works.

I don't know what the problem is at all. But it seems the bug is due to Thin.

Reported by Damien Le Berrigaud · November 27th, 2008 @ 10:01 PM

State: invalid
Milestone: Future
Assigned to: macournoyer macournoyer

Activity

  1. macournoyer
    macournoyer
    • State changed from new to open

    Hey Damien,

    try requiring rubygems before tzinfo

    December 5th, 2008 @ 09:46 AM

  2. macournoyer
    macournoyer
    • State changed from open to invalid

    reopen if more info, works for me

    December 16th, 2008 @ 08:59 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.