#90 ✓invalid
Damien Le Berrigaud

Thin won't load gem tzinfo

Reported by Damien Le Berrigaud | November 27th, 2008 @ 10:01 PM | in Future

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.

Comments and changes to this ticket

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Pages