require
Can not find gems running "ruby <my_script>.rb" – but works in IRB
I am experiencing issues when I am trying to run my .rb-file with the Ruby-command trying to access a gem. The gem i am trying to use is Ruby-Whois. I have an example script below that when I try to e[详细]
2023-02-14 03:45 分类:问答node.js express require?
In an example I see something like this: var uid = require(\"../support/express/support/connect/lib/connect/utils\").uid[详细]
2023-02-13 22:09 分类:问答require_once :failed to open stream: no such file or directory
I have this testing code in \"PAGE A\": <?php require_once(\'../mysite/php/classes/eventManager.php\');[详细]
2023-02-13 14:56 分类:问答ActiveSupport can't load Sass engine under Rails 2.3.4
I\'m trying to use Sass engine in a controller like in this blog post. But Rails (2.3.4) ActiveSupport can\'t load it because of an error:[详细]
2023-02-13 09:44 分类:问答how to pass variables between 2 php pages when the latter called with require()
I am a PHP newbie, and I have this question: say I have: a.php: $a = \'foo\' ; $b = \'baz\' ; require (\'b.ph开发者_高级运维p\') ;[详细]
2023-02-11 18:57 分类:问答Heroku Sinatra app — unitialized constant Jido
I have a small Sinatra application that is calling a library I developed named Jido. This library is provided by a RubyGem that I list as a dependency in the Sinatra app\'s Gemfile. I can run this app[详细]
2023-02-11 03:57 分类:问答Subfolders in lib
I have a module called u开发者_如何学运维ser_searches.It performs some searches that aren\'t core to the user model, thus, why I\'m putting the responsibility somewhere else.I want to organize all my[详细]
2023-02-09 23:43 分类:问答Unable to include a Class in to another class in Ruby: uninitialized constant (NameError)
Lets say I have three classs, each define in its own file. e.g. ClassA in ClassA.rb etc... class ClassA[详细]
2023-02-09 00:36 分类:问答Explicitly test whether libraries/gems are defined by stubing in rspec?
I\'m building a very small gem to read an image data format and return the image either as a boring ruby array, or a nice narray, depending on a) if an narray has been requested and b) 开发者_运维百科[详细]
2023-02-07 12:56 分类:问答using require statments with if/elseif statements [duplicate]
This question already has answers here: Closed 12 years ago. Possible Duplicate: PHP Question: How to fix these if/elseif statements[详细]
2023-02-04 03:17 分类:问答