Coder Social home page Coder Social logo

mite-api-csv-import's People

Contributors

semanticdreamer avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

mite-api-csv-import's Issues

Wrong number of arguments for time_entry.rb

I'm new to Ruby, so please bear with me.

When I try to import my CSV file, the first row imports successfully. On the second row (regardless of the content of that second row, import fails and generates the following errors in Terminal:

-------------------------------------------
          mite. API CSV Import            
-------------------------------------------
 - import to account 'papercut'.
/Users/shankie/.rvm/gems/ruby-1.9.2-p320/gems/mite-rb-0.4.4/lib/mite/time_entry.rb:40:in `load': wrong number of arguments (2 for 1) (ArgumentError)
    from /Users/shankie/.rvm/gems/ruby-1.9.2-p320/gems/activeresource-3.2.8/lib/active_resource/base.rb:1370:in `load_attributes_from_response'
    from /Users/shankie/.rvm/gems/ruby-1.9.2-p320/gems/activeresource-3.2.8/lib/active_resource/base.rb:1362:in `block in create'
    from /Users/shankie/.rvm/gems/ruby-1.9.2-p320/gems/activeresource-3.2.8/lib/active_resource/base.rb:1360:in `tap'
    from /Users/shankie/.rvm/gems/ruby-1.9.2-p320/gems/activeresource-3.2.8/lib/active_resource/base.rb:1360:in `create'
    from /Users/shankie/.rvm/gems/ruby-1.9.2-p320/gems/activeresource-3.2.8/lib/active_resource/observing.rb:19:in `create_with_notifications'
    from /Users/shankie/.rvm/gems/ruby-1.9.2-p320/gems/activeresource-3.2.8/lib/active_resource/base.rb:1155:in `save'
    from /Users/shankie/.rvm/gems/ruby-1.9.2-p320/gems/activeresource-3.2.8/lib/active_resource/validations.rb:79:in `save_with_validation'
    from /Users/shankie/.rvm/gems/ruby-1.9.2-p320/gems/activeresource-3.2.8/lib/active_resource/observing.rb:19:in `save_with_notifications'
    from /Users/shankie/.rvm/gems/ruby-1.9.2-p320/gems/activeresource-3.2.8/lib/active_resource/base.rb:746:in `block in create'
    from /Users/shankie/.rvm/gems/ruby-1.9.2-p320/gems/activeresource-3.2.8/lib/active_resource/base.rb:746:in `tap'
    from /Users/shankie/.rvm/gems/ruby-1.9.2-p320/gems/activeresource-3.2.8/lib/active_resource/base.rb:746:in `create'
    from importer.rb:90:in `block in <main>'
    from /Users/shankie/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/csv.rb:1768:in `each'
    from /Users/shankie/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/csv.rb:1202:in `block in foreach'
    from /Users/shankie/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/csv.rb:1340:in `open'
    from /Users/shankie/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/csv.rb:1201:in `foreach'
    from importer.rb:40:in `<main>'

I'm not sure if this is a genuine issue or me being a newbie. Any thoughts, anyone? Thanks in advance

Mac OS X 10.8.2, Ruby 1.9.2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.