草庐IT

CONFIG_DEBUG_SECTION_MISMATCH

全部标签

ruby - sinatra config.ru : what is the configure block for?

我将Sinatra与Apache和“经典”风格的Phusion-Passenger一起使用:#config.rurequire'sinatra'configuredo....endrequire'./app'runSinatra::Application我想定义一些东西。在配置block内部或外部定义它有什么区别?#config.rurequire'sinatra'#A)Definingloggerhererack=File.new("logs/rack.log","a+")useRack::CommonLogger,rack#B)GlobalvariableshereLOGGER=L

ruby-on-rails - 无法安装 ruby​​-debug-base19x gem

当我尝试安装ruby​​-debug-base19xgem以使用RubyMineIDE调试我的应用程序时,我收到以下错误消息,有人可以帮助我吗?我使用的是MacOSX10.7.4/Users/danilobarsotti/.rvm/rubies/ruby-1.9.3-p194/bin/rubyextconf.rbcheckingforrb_method_entry_t.bodyinmethod.h...nocheckingforvm_core.h...no/Users/danilobarsotti/.rvm/gems/ruby-1.9.3-p194/gems/ruby_core_sou

ruby-on-rails - 无法安装 rmagick,pkg-config : command not found

我正在尝试在我的Mac OS Xv10.9上安装rmagick(Mavericks)机器。然而。我得到这个错误/usr/local/bin/Magick-config:line41:pkg-config:commandnotfound/usr/local/bin/Magick-config:line47:pkg-config:commandnotfound/usr/local/bin/Magick-config:line50:pkg-config:commandnotfound/usr/local/bin/Magick-config:line53:pkg-config:commandn

ruby - 无法将 ruby​​-debug19 与 1.9.3-p0 一起使用?

这个问题在这里已经有了答案:关闭10年前。PossibleDuplicate:Rails3.1andRuby1.9.3p125:ruby-debug19stillcrasheswith“Symbolnotfound:_ruby_threadptr_data_type”我运行这个:gem安装ruby​​-debug19在我的cucumberenv.rb文件中,我有这个:需要'ruby-debug'但是,当我尝试运行时,我得到了这个异常:/home/skendall/.rvm/gems/ruby-1.9.3-p0/gems/ruby-debug-base19-0.11.25/lib/rub

ruby-on-rails - 如何解决 RubyMine "' ruby​​-debug-ide' isn't installed”错误

我得到错误:Cannotstartdebugger.Gem'ruby-debug-ide'isn'tinstalledoritsexecutablescript'rdebug-ide'doesn'texist.但所有gem都已成功安装:gem'ruby-debug-ide'gem'debase'我可以手动运行“rdebug-ide”:$rdebug-ideUsingruby-debug-base0.2.1Usage:rdebug-ideissupposedtobecalledfromRDT,NetBeans,RubyMine,ortheIntelliJIDEARubyplugin.Th

ruby-on-rails - 向我解释 config 在 Rails 中是如何工作的

我有一个Rails3应用程序,称之为“MyApp”。在我的config\environments\production.rb文件中,我看到诸如MyApp::Application.configuredoconfig.log_level=:infoconfig.logger=Logger.new(config.paths.log.first,'daily')...or...config.logger=Logger.new(Rails.root.join("log",Rails.env+".log"),3,20*1024*1024)所以,问题集中在术语和它们的意思上……(或将我指向某个网站

ruby-on-rails - logger.debug 不写入 Rails 中的日志文件

我正在尝试在Rails中调试模型,因此我使用了以下代码:logger.debug('asasd')但是,我正在跟踪日志文件development.log,但我没有看到它添加到此文件中。我确定这个模块正在运行我已确认运行时错误正在记录到此文件中,并且我在tail时看到了它们。我如何让它工作? 最佳答案 确保您已将日志级别设置为在environments/appropriate_env_file.rb中进行调试:config.log_level=:debug并确保您根据运行环境跟踪正确的日志文件。

ruby-on-rails - 尝试在测试中运行 rails c 时获取 config.eager_load 设置为 nil

我正在尝试运行Rails(4.1.2)控制台railscRAILS_ENV=test我得到这个:>config.eager_loadissettonil.Pleaseupdateyour>config/environments/*.rbfilesaccordingly:>>*development-setittofalse*test-setittofalse(unless>youuseatoolthatpreloadsyourtestenvironment)*production->setittotrue>>/Users/xxxxxx/.rvm/gems/ruby-2.2.2/gems

ruby-on-rails - "config.assets.debug"设置到底是做什么的?

我已经开始开发简单的Rails应用程序。经过几个小时的工作,我注意到删除的css不知何故仍应用于网页。为了解决这个问题,我多次执行了以下操作:停止/启动服务器使用rails服务器使用torquebox服务器删除浏览器缓存但没有任何变化。这很奇怪——应用了新的css定义,但我删除的那些定义仍然存在。所以,我放弃了,决定创建新项目。我已经设置了新项目(它的脚手架与第一个项目相同),当我打开其中一个View时,旧项目的样式也被应用了。我决定再次调查http://guides.rubyonrails.org/asset_pipeline.html并找出那个设置#Expandsthelinesw

ruby-on-rails - 如何配置 config.yml 以便我可以安装 devkit?

MicrosoftWindows[Version6.1.7601]Copyright(c)2009MicrosoftCorporation.Allrightsreserved.C:\Users\Aaron>cd/DevKitThesystemcannotfindthepathspecified.C:\Users\Aaron>cd\DevKitC:\DevKit>rubydk.rbinitInitializationcomplete!Pleasereviewandmodifytheauto-generated'config.yml'filetoensureitcontainstheroo