ripple: uninitialized constant ManyLinkProxy

francisco treacy francisco.treacy at gmail.com
Fri May 28 16:09:37 EDT 2010


I am having an issue with Ripple:

$ rails c
ruby-1.9.1-p378 > user = User.find('francisco.treacy at gmail.com')
[...]
ruby-1.9.1-p378 > user.books
NameError: uninitialized constant Ripple::Document::Associations::ManyLinkProxy
	from /Users/ftreacy/.rvm/gems/ruby-1.9.1-p378/gems/activesupport-3.0.0.beta3/lib/active_support/inflector/methods.rb:114:in
`block in constantize'
	from /Users/ftreacy/.rvm/gems/ruby-1.9.1-p378/gems/activesupport-3.0.0.beta3/lib/active_support/inflector/methods.rb:113:in
`each'

when accessing a one-to-many association.

Am I doing something wrong or it looks like a bug?

This is the class:

class User
  include Ripple::Document

  property :name, String
  property :email, String, :presence => true
  property :password, String
  property :password_confirmation, String
  property :confirmation_sent_at, Time

  many :books

  timestamps!

  def key
    email
  end

  def id
    email
  end

end

Using:
gem 'rails', '3.0.0.beta3'
gem "ripple", "0.7.0"

Thanks,
Francisco




More information about the riak-users mailing list