cordawyn / spira

Fork of Spira with experimental branches, occasionally merged upstream.
http://blog.datagraph.org/2010/05/spira
The Unlicense
8 stars 2 forks source link

Spira::Base - wrong number of arguments(1 for 0) #7

Closed phlegx closed 12 years ago

phlegx commented 12 years ago

If I try to use "type URI.new('http://example.org/types/album')" rails return an error.

class Album < Spira::Base
  type URI.new('http://example.org/types/album')
end
cordawyn commented 12 years ago

Could you try "RDF::URI" in place of "URI"? There might be some confusion with namespaces for a while, until I finish with a major refactoring here. Sorry for the inconvenience.

phlegx commented 12 years ago

Yes, now all works fine... I test spira with my fork of rdf-sesame gem. Spira is very cool! ;) If I can help you, please contact me...

cordawyn commented 12 years ago

Fork it, submit pull requests, report bugs or just discuss things if you find that something doesn't work as expected - anything goes :-) Since my branch of Spira aims at the best compatibility with the Rails' ecosystem, I encourage you to try Spira with as many (preferably, popular) gems as possible. I mean those gems that depend on the information provided by ActiveModel (and derivatives).