Tag: tzinfo

TZInfo :: DataSourceNotFound错误在Windows上启动Rails v4.1.0服务器

我已经使用Ruby on Rails v4.1.0创build了一个新的应用程序。 当试图在Windows上启动服务器或控制台时,遇到以下错误: $ rails server Booting WEBrick Rails 4.1.0 application starting in development on …. Exiting c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/data_source.rb:199: in `rescue in create_default_data_source': No timezone data source could be found. To resolve this, either install TZInfo::Data (eg by running `gem install tzinfo-data`) or specify a zoneinfo directory using `TZInfo::DataSource.set(:zoneinfo, zoneinfo_path)`. (TZInfo::DataSourceNotFound) from c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/data_source.rb:196: in […]