rails generate couchbase:view DESIGNDOCNAME VIEWNAME will not create Production View and errors out.
If you are having errors occur when you try to launch rails or if you add a view to a Couchbase::Model object read on!
If you create a view using the rails generator in the couchbase model gem, make sure you either delete the reduce.js template or actually comment in code.
If you leave the file full of only comments, the parser/view creator function blows up.
------------------------------------------------
http://www.couchbase.com/issues/browse/RCBC-95
I found this by digging around, but it doesn't look like the fixed version has been released?
I still get the not helpful error message:
/usr/local/lib/ruby/gems/1.9.1/gems/couchbase-1.2.0/lib/couchbase/bucket.rb:165:in `continue': failed to execute HTTP request (key="_design/category_column", status="400" (Bad Request), error=0x00) (Couchbase::Error::HTTP)
The fixed version would say
SERVER: invalid_design_document: Syntax error in the map function of the view `by_date': SyntaxError: Unexpected end of input (Couchbase::Error::View)
I will check if it is bug in couchbase-model gem
Find me on FreeNode IRC in #libcouchbase channel