Skip to content

Instantly share code, notes, and snippets.

@voodoo
Created May 5, 2011 13:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save voodoo/957013 to your computer and use it in GitHub Desktop.
Save voodoo/957013 to your computer and use it in GitHub Desktop.
/Library/Ruby/Gems/1.8/gems/builder-3.0.0/lib/builder/xmlbase.rb:135:in `to_xs': wrong number of arguments (1 for 0) (ArgumentError)
from /Library/Ruby/Gems/1.8/gems/builder-3.0.0/lib/builder/xmlbase.rb:135:in `_escape'
from /Library/Ruby/Gems/1.8/gems/builder-3.0.0/lib/builder/xmlbase.rb:140:in `_escape_quote'
from /Library/Ruby/Gems/1.8/gems/builder-3.0.0/lib/builder/xmlmarkup.rb:320:in `_attr_value'
from /Library/Ruby/Gems/1.8/gems/builder-3.0.0/lib/builder/xmlmarkup.rb:311:in `_insert_attributes'
from /Library/Ruby/Gems/1.8/gems/builder-3.0.0/lib/builder/xmlmarkup.rb:310:in `each'
from /Library/Ruby/Gems/1.8/gems/builder-3.0.0/lib/builder/xmlmarkup.rb:310:in `_insert_attributes'
from /Library/Ruby/Gems/1.8/gems/builder-3.0.0/lib/builder/xmlmarkup.rb:293:in `_start_tag'
from /Library/Ruby/Gems/1.8/gems/builder-3.0.0/lib/builder/xmlbase.rb:60:in `method_missing'
from /Library/Ruby/Gems/1.8/gems/builder-3.0.0/lib/builder/xmlbase.rb:34:in `tag!'
from /Library/Ruby/Gems/1.8/gems/rforce-0.7/lib/rforce.rb:80:in `expand'
from /Library/Ruby/Gems/1.8/gems/rforce-0.7/lib/rforce.rb:60:in `each'
from /Library/Ruby/Gems/1.8/gems/rforce-0.7/lib/rforce.rb:60:in `expand'
from /Library/Ruby/Gems/1.8/gems/rforce-0.7/lib/rforce/binding.rb:147:in `call_remote'
from /Library/Ruby/Gems/1.8/gems/rforce-0.7/lib/rforce/binding.rb:102:in `login'
from /Library/Ruby/Gems/1.8/bundler/gems/asf-rest-adapter-64ea1d068248/lib/Salesforce/rest/asf_rest_authenticate.rb:39:in `bootup_rest_adapter'
@kelyar
Copy link

kelyar commented Jun 27, 2011

class String
  alias_method :to_xs, :original_xs if "".respond_to? :original_xs
end

put it somewhere in initializers to fix this behaviour

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment