Putting the Discogs API on Rails – ActiveDiscogs

Sonntag, der 15. Juni 2008, 19:40 Uhr von Ullrich

I had a look inside ActiveResource as it is part of Rails since version 2.1, and tried to use it to access the Discogs API. It turned out to be a bit difficult and required a bit more coding than accessing a regular Rails RESTful API.

That’s the reason why i created a Rails Plugin which supports the basic tasks for now (getting releases, artists and labels). Future versions will support searching and caching and a bit more.

The project goes by the name of ActiveDiscogs and is available on http://activediscogs.rubyforge.org/

Feel free to join and play with it :)

Ah, before i forget: To install just use

script/plugin install svn://rubyforge.org/var/svn/activediscogs

Geschrieben in: Coding | Tags: Schlagwörter:,
0 Trackbacks | 1 Kommentar »

Eine Antwort

  1. Dave Spurr sagt:

    Hi there, I’ve just taken a look at this but I’ve hit a problem and can’t figure out what it is (it may be because it’s a little late here).

    When I try ActiveDiscogs::Artist.find(‘Nirvana’)

    I get the following error:

    ArgumentError: expected an attributes Hash, got nil
    from /usr/lib/ruby/gems/1.8/gems/activeresource-2.2.2/lib/active_resource/base.rb:939:in `load’
    from /usr/lib/ruby/gems/1.8/gems/activeresource-2.2.2/lib/active_resource/base.rb:653:in `initialize’

    I’m running on Rails 2.2.2 if that makes any difference.

Einen Kommentar abgeben

Bitte beachten Sie: Die Kommentare werden moderiert. Dies kann Ihren Kommentar verzögern. Es besteht aber kein Grund, ihn nochmal abzuschicken.