search for: argumenterrors

Displaying 20 results from an estimated 401 matches for "argumenterrors".

Did you mean: argumenterror
2007 Oct 04
0
Prototyping the Dir class
Hi all, I''ve been prototyping a Windows-only Dir class for Ruby. Below is what I''ve got so far. The class methods were easy, except for Dir.glob. The code in dir.c is just nasty, and I can''t help but think that it could be heavily refactored. I did come across this link: http://www.codeproject.com/file/fileglob.asp But I haven''t investigated it yet. Anyone
2008 Sep 12
1
ArgumentError: Unknown key(s): dependant
Hello, I came across an association error today with facebooker. class Cover < ActiveRecord::Base belongs_to :album end class Album < ActiveRecord::Base has_one :cover, :dependent => :destroy end At the console: >> Album.find :first ArgumentError: Unknown key(s): dependant from
2010 Oct 30
2
ArgumentError (wrong number of arguments (2 for 0)):
Can anyone tell me why I am getting this error using rails3 and Ruby1.9.2:- Completed 200 OK in 212313ms (Views: 2.8ms | ActiveRecord: 0.0ms) Homepage Load (0.2ms) SELECT "homepages".* FROM "homepages" WHERE ("homepages"."section" = ''%Gar%'') ArgumentError (wrong number of arguments (2 for 0)):
2008 Oct 08
3
ArgumentError in "is a pending example" - block not supplied
We have a few unfinished examples in our code of the form it "should and does do something" do # stuff end it "should do something someday" it "should and does do something else" do # more stuff end Now since I upgraded my gem to rspec 1.8 today, the empty example is failing with the error ArgumentError in "should do something someday":
2006 Feb 28
1
ArgumentError (string contains null byte) -- file upload problem
Hi, Controller code: if params[:main_image] image = Image.new image.blob = params[:main_image].read @product.main_image.destroy if @product.main_image @product.main_image = image end When I try to display the image using send_data, I get the following error: ArgumentError (string contains null byte):
2006 Mar 25
1
Help with File.set_permissions port
I''ve got a (broken) version of File.set_permissions in CVS, and I need some help finishing it off please. Heesob, can you take a look? Thanks, Dan
2010 Apr 30
0
Netbeans - Malformed version number string mswin32 (ArgumentError)
History... before it went to heck... I have been working a project in Netbeans for a month. I did a gem update outside of Netbeans while I was installing ImageMagick and RMagick... I also had to remove one verson of ImageMagick to use the one compatible with RMagick. Everything was working well... then I went to migrate my DB back to start fresh again and I got : Malformed version number
2012 Feb 26
0
Getting ArgumentError calling initialize with ActiveResource 3.2.1
instantiate_record calls new, and new implicitly calls initialize (unless I''m not understanding the mystery) In base.rb def instantiate_record(record, prefix_options = {}) new(record, true).tap do |resource| resource.prefix_options = prefix_options end end As it''s written get an ArgumentError as this calls new(record, true). If I change the code in base.rb to the
2006 Aug 04
0
ArgumentError calling Dispatcher.dispatch
Hello. I am hitting a nasty error wherein the the 2nd sequential request to my rails application is failing with the following error. Note that I am getting this error with both webrick... #<ArgumentError: wrong number of arguments (3 for 1)> ["C:/sdks/ruby/1.8.4/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/webrick_server.rb:115:in `dispatch''" ...and with Mongrel... Error
2006 Mar 20
5
Need some ACL help for win32-file
Hi folks, I''ve got most everything done for the pure Ruby version of win32-file. The last thing left (since I''ll be moving the IO methods to a different package eventually) is the file security stuff. Here''s what I''ve got so far for the get_permissions method. However, I''m stuck at GetAce(). If someone could help me finish up this method, I
2011 Jan 21
6
help writing types/provider
I''ve almost finished a pretty simple type/provider to manage RabbitMQ users and virtual hosts. I''m using the ''ensurable'' keyword in my type to save a bit of boilerplate. Type is below (the provider is just a wrapper around the ''rabbitmqctl'' command. Have a feeling there''s a developer guide somewhere I haven''t found (been
2009 Feb 21
2
ArgumentError on model create statement
I have a rails app model that I''m getting a strange error that is just baffling me. I''ve stripped everything out of my model down to the basics and still get the error. So, here is the current model: class Metric < ActiveRecord::Base end When I go into the console, and issue a simple "Metric.create" command I get the following error: >> Metric.create
2005 Dec 31
1
Error when Testing AWS API (ArgumentError: illegal refid http://test.host/login)
OK, I''m finally starting to play around with the AWS part of Rails, and I''m running into problems with the functional tests. If I use the generator to create the web service as ./script/generate web_sevice MyTest do_it and then run the unit tests without further editing the code, I get the following error: test_do_it(MyTestControllerApiTest): ArgumentError: illegal
2007 Aug 23
0
"interning empty string - (ArgumentError)" passing AR objects between workers
Hi all, I need some help with this setup I am trying to get working with BackgrounDRb: An autostarted "dispatcher" worker runs every minute and polls some table for jobs that need to be run at that time. For each job found, the "dispatcher" spawns a "runner" worker that runs the job. So in my "dispatcher" worker, I have some code like this:
2006 Feb 04
0
ArgumentError when installing plugins with -x
This is the second time that I''ve tried to install plugins where this error has occured. It only occurs when I use the -x flag. script/plugin install -x svn://cartographer.rubyforge.org/trunk/vendor/plugins/cartographer /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/plugin.rb:675:in `method'': wrong number of arguments (0 for 1) (ArgumentError) from
2006 Mar 29
1
Problems with Ferret 0.9.0
Hi, I upgraded from 0.3.2 to 0.9.0, and now my old search code doesn''t work anymore. I get a lot of ArgumentErrors, for example: "query.add_clause(Search::BooleanClause.new(query_parser.parse(term), Search::BooleanClause::Occur::MUST))" raises: ArgumentError (wrong number of arguments (2 for 0)) "index_searcher.search_each(query)" raises: ArgumentError (wrong number of argumen...
2007 Aug 24
0
ArgumentError: interning empty string and enum-column plugin
Hello, I am a developer who has just started working on a large scale website in a team of 5 other developers. One of the developers has introduced some enum columns into the the database. Now, by default, active record doesn''t support enum column types but I have added the enum-column plugin into our project. This has worked very well except for a few instances where he
2007 Dec 18
0
Can not test if model name is Tester in rails 2 (ArgumentError: wrong number of arguments (0 for 1))
I''m using rails 2.0.1 now. Here is the step for generate the error 1. Create rails project name demo "rails demo" 2. I create model name "Tester" using command "ruby script/generate model Tester name:string description:text" 3. create database (after change username and password) "rake db:create:all" 4. migrate database, both development and
2009 Jun 01
0
ArgumentError (interning empty string)
Hello, I am trying to send an email out on registration for confirming and I am thrown this error. I am unable to understand as nothing is nil in the class which I am passing to the Mailer. Please do help me. The stack trace follows: ArgumentError (interning empty string): app/controllers/accounts_controller.rb:103:in `register'' app/controllers/accounts_controller.rb:43:in
2013 Jun 24
0
wrong number of arguments calling `request` (0 for 1) (ArgumentError)
Here is the scenario Scenario: Successful login Given an unauthenticated visitor When visitor goes to /users/login And fills in Email with: amitpandya And fills in Password with: amitpandya And clicks the Login button Then amitpandya should be logged in And page should include a notice with text: Welcome amitpandya And amitpandya should see the home mypage page