草庐IT

loaded_sheet

全部标签

轨道上的 ruby 。调度.fcgi 。 dependencies.rb :251:in `require' : cannot load such file -- fcgi (LoadError)

app=redmine-2.0.1ruby=ruby​​1.9.3p194(2012-04-20修订版35410)[x86_64-linux][root@by1016690public]#./dispatch.fcgi/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in`blockinrequire':iconvwillbedeprecatedinthefuture,useString#encodeinstead./usr/local/lib/r

ruby-on-rails - 在什么情况下会从父进程获取 Ruby $LOAD_PATH?

在我的Cucumber场景中,如果我在目标Rails应用程序文件夹中调用rakedb:schema:load,我会得到Cucumber进程的$LOAD_PATH而不是Rails应用程序自己的Gemfile/load路径。我觉得这很奇怪。结果是我得到以下错误:nosuchfiletoload--rails/all我无法在我的cucumber场景之外重现它。ruby-rubygems-e"system'rake-T'"正常工作->'rake-T'有应用程序自己的基于Gemfile的$LOAD_PATH;并且不会产生上述错误。谁能想到为什么子进程(rake-T或rakedb:schema:l

ruby-on-rails - App::Application.load_tasks 在哪里定义?

关闭。这个问题不符合StackOverflowguidelines.它目前不接受答案。我们不允许提问寻求书籍、工具、软件库等的推荐。您可以编辑问题,以便用事实和引用来回答。关闭7年前。Improvethisquestion#Addyourowntasksinfilesplacedinlib/tasksendingin.rake,#forexamplelib/tasks/capistrano.rake,andtheywillautomaticallybeavailabletoRake.requireFile.expand_path('../config/application',__FI

ruby - Travis-ci 构建失败,rake 中止!加载错误 : cannot load such file -- rspec/core/rake_task

我正在尝试将travis-ci添加到我的项目中,但它一直失败rakeaborted!LoadError:cannotloadsuchfile--rspec/core/rake_task我目前正在使用rspec3.1关于为什么会失败以及如何解决它有什么想法吗?这是我失败的项目:https://github.com/toymachiner62/readable_date_ranges/tree/tests编辑Usingworker:worker-linux-9-2.bb.travis-ci.org:travis-linux-4system_infoBuildsysteminformatio

ruby-on-rails - 如何使用 Ruby 中的 Google Sheets Api 格式化 dd/mm/yyyy 中的多个日期类型列?

我有多个日期类型的列,例如“用户加入日期”、“出生日期”、“到达日期”等。这些日期已经采用日/月/年格式。但问题是gsheet将02/01/2019之类的日期解释为2019年2月1日,但将13/01/2019解释为2019年1月13日,这会导致格式问题。02/01/2019左对齐,而13/01/2019右对齐。此外,这还会导致排序问题。我试过更改电子表格的区域设置和语言,但没有任何帮助。 最佳答案 您始终可以按照Google表格预期的方式提供日期,在您的情况下为mm/dd/yyyy。您可以使用#strftime将Time、Date或

ruby - Rack : cannot load such file 'sinatra'

我已经在irb中安装了sinatragem,如果我输入,require'sinatra'它返回true。但是当我这样做的时候rackup-dconfig.ru它告诉我nilException`LoadError'at/usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36-cannotloadsuchfile--sinatra这是我的config.rurequire'./app'set:environment,ENV['RACK_ENV'].to_symset:app_file,'app.rb'disable:runrunSinat

ruby - 如何解决 LoadError : cannot load such file -- ffi_c

我想知道如何解决在安装Ruby2.2.1Windows安装程序和Rubygem2.4后在控制台上执行require命令时看到的下一个错误.6。LoadError:cannotloadsuchfile--ffi_cfromC:/Ruby22-x64/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in`require'这是类似于DLL的东西吗? 最佳答案 如果您阅读requirementffi的文档,你可以看到:Youneedasanebuildingen

ruby - gem_original_require' : no such file to load -- sinatra (LoadError)

我正在我的本地机器上工作。如果我使用Sinatra应用程序,将此行添加到myapp.rb没有问题require'sinatra'当我转到控制台并运行时irb-rmyapp.rb我收到这个错误gem_original_require':nosuchfiletoload--sinatra(LoadError)我知道我的IRB或Ruby路径看起来不正确。我正在使用(简单的Ruby版本管理:rbenv)来管理Ruby环境,不太确定这是否会影响事情?我运行了gemenv并得到了这个。RubyGemsEnvironment:-RUBYGEMSVERSION:1.8.10-RUBYVERSION:1

ruby - Jekyll 构建失败 : Liquid Exception: cannot load such file -- yajl

最近刚刚弄坏了我的PC,我已经有一段时间没有使用Jekyll,甚至Ruby,但是在我认为我已经正确设置了所有内容之后,当我尝试运行时......jekyllbuildorjekyllserve我收到这个错误:Generating...LiquidException:cannotloadsuchfile--yajl/2.0/yajlin_posts/2013-09-21-welcome-to-jekyll.markdownC:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:53:in`require':cannotl

javascript - rails link_to :remote from within ajax-loaded content

大家好,我正在开发一个应用程序,但我在使用新的Rails3link_to时遇到了困难。情况是这样的——我的“主页”页面上有两个div,每个div都在document.load中填充了ajax。这按预期工作。在我加载到这些div的页面内容中,我想使用link_to...:remote=>true功能。源代码使用data-remote="true"标记按预期呈现,但是当我单击链接时,它们被完全忽略(该链接被视为常规超链接)。我已经编写了可以正确处理所有内容的.rjs文件(因为它们在硬编码时可以工作),所以这不是问题所在。这是加载了ajax的内容的html源代码:LinkALinkB当正常情