Couchbase Questions: Ruby SDK

Have a Question? Get it answered by our community

kensyuu's picture
Asked 19 hours 12 min ago

Couchbase memcached expiration

Hi all,

I am working Couchbase with Ruby on Rails, after googling, I have written below code base on what I've found from the Internet.

config/environments, development.rb, production.rb and test.rb

kensyuu's picture
Asked 4 days 18 hours ago

Protect_from_Forgery usage

Hi All,

I just get my hands on protect_from_forgery, and I have written something simple login as below:

my client-side

        WWWForm form = new WWWForm();
takach's picture
Asked 2 months 4 hours ago

No more bootstrap providers remain?

I'm developing a multi threaded rails application and see this error in production quite often:
No more bootstrap providers remain (error=0x17)

There doesn't seem to be any issue with couchbase itself and I don't need to have too many concurrent requests before this issue starts...

buger's picture
Asked 3 months 2 weeks ago
Latest activity 2 months 3 weeks ago

Error after updating libcouchbase from 2.2 to 2.3

After updating design_docs query shows error:

Couchbase::Error::Invalid: failed to schedule document request (key="/pools/default/buckets/
buger's picture
Asked 3 months 3 weeks ago
Latest activity 3 months 3 weeks ago

Segfault when trying to use :observe option

The only change in code is added :observe => {:persisted => 1} to set operation.

Here is what happens:
Bug happen when using eventmachine engine. Do not see...

buger's picture
Asked 5 months 11 hours ago
Latest activity 3 months 3 weeks ago

Error while using ruby sdk with EventMachine

I'm getting this error when trying to start your goliath example:

couchbase-ruby-client/examples/chat-goliath-grape# ruby app.rb -sv 
[26428:INFO] 2014-03-04 15:59:43 :: Starting server on
aso's picture
Asked 5 months 1 week ago
Latest activity 5 months 1 week ago

How to access development view using Ruby SDK?

I created development view in the beer-sample bucket with the name 'by_location'. I can see it in couchbase console when I select Views->beer-sample->Development Views. It is in _design/dev_beer. In the code I am trying to access it:

client ="...

drami's picture
Asked 5 months 2 weeks ago
Latest activity 5 months 1 week ago

Couchbase gem v=1.3.5 fail

My environment:

Windows 7 64bits
Ruby 1.9.3
Rails 3.2

Create new app:

rails new couchbase_example -O

Add to Gemfile:

gem 'couchbase'
gem 'couchbase-model'


bundle install

The gem are...

aso's picture
Asked 5 months 2 weeks ago
Latest activity 1 week 6 days ago

unable to install couchbase gem v. 1.3.5 on windows 7

Environment - Windows 7 Professional (64), Ruby 1.9.3 p.484

gem install couchbase

Fetching: yaji-0.3.5-x86-mingw32.gem (100%)
Successfully installed yaji-0.3.5-x86-mingw32
Fetching: connection_pool-1.2.0.gem (100%)
Successfully installed connection_pool-1.2.0...

frankgarcia's picture
Asked 6 months 2 weeks ago
Latest activity 5 months 3 weeks ago

Dealing with document metadata

How can I retrieve a document metadata? With Bucket#get I can only get its value

Is there any function in the SDK that can convert a document CAS number into the REV string value and the other way around?

So far my poor man solution is having a view with all document ids as key,...