Searching using Ripple

Jesse Zamora xtremekforever at gmail.com
Sat Apr 30 14:41:18 EDT 2011


Hello,

I'd like to search for an account based on email using Ripple. See my model
account_model.rb:

class Account
  include Ripple::Document

  property :name, String, :presence => true
  property :email, String, :presence => true
  property :phone, String, :presence => true
  property :address, String, :presence => true
  property :type, Integer, :presence => true
  property :active, Boolean, :default => true, :presence => true

  timestamps!
end

So essentially, is there any way to search for accounts based on the :email
using Ripple?

Thanks,
Jesse L. Zamora
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20110430/15aaa808/attachment.html>


More information about the riak-users mailing list