nameerror
ruby: irb gives NameError attempting to use mechanize gem (ubuntu)
On my ubuntu box, irb (ruby) gives a NameError when I try to use the mechanize gem: $ irb irb(main):001:0> require \'mechanize\'[详细]
2023-01-10 06:02 分类:问答calling class from an external module causes NameError, in IDLE it works fine
i have the following code in a module called code_database.py class Entry(): def enter_data(self): self.title = input(\'enter a title: \')[详细]
2023-01-08 04:43 分类:问答Problem using OpenStruct with ERB
EDIT: forgot to include my environment info... Win7x64, RubyInstaller Ruby v1.9.1-p378 EDIT 2: just updated to v1.9.1, patch 429, and still getting this same error.[详细]
2023-01-07 05:52 分类:问答Django Error: NameError name 'current_datetime' is not defined
I\'m working through the book \"The Definitive Guide to Django\" and am stuck on a piece of code. This is the code in my settings.py:[详细]
2022-12-30 21:38 分类:问答Rails3 and Sass::Plugin::options
When I try to add Sass::Plugin.options[:style] = :compact to environment.rb When I try to start up my server I get:[详细]
2022-12-29 16:43 分类:问答function not defined but really is defined
I am writing a script and in my script I have this function: def insert_image(cursor, object_id, sku):[详细]
2022-12-22 05:55 分类:问答Getting the name which is not defined from NameError in python
As you know, if we simply do: >>> a > 0 Traceback (most recent call last): File \"<pyshell#1>\", line 1, in <module>[详细]
2022-12-20 01:59 分类:问答How to create a rails habtm that deletes/destroys without error?
I created a simple example as a sanity check and still can not seem to destroy an item on either side of a has_and_belongs_to_many relationship in rails.[详细]
2022-12-16 21:47 分类:问答
加载中,请稍侯......