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
-
macournoyer December 5th, 2008 @ 09:46 AM
- State changed from new to open
Hey Damien,
try requiring rubygems before tzinfo
-
macournoyer December 16th, 2008 @ 08:59 PM
- State changed from open to invalid
reopen if more info, works for me
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป