On my ubuntu box, irb (ruby) gives a NameError when I try to use the mechanize gem: $ irb irb(main):001:0> require \'mechanize\'
i have the following code in a module called code_database.py class Entry(): def enter_data(self): self.title = input(\'enter a title: \')
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.
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:
When I try to add Sass::Plugin.options[:style] = :compact to environment.rb When I try to start up my server I get:
I am writing a script and in my script I have this function: def insert_image(cursor, object_id, sku):
As you know, if we simply do: >>> a > 0 Traceback (most recent call last): File \"<pyshell#1>\", line 1, in <module>
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.