search for: couchrest_model

Displaying 1 result from an estimated 1 matches for "couchrest_model".

2012 May 21
4
Getting model column names
Hello, I am writing a RoR application that connects to a couchDB database using couchrest_model. The definition of my model is the following one: class BdsDataAuthor < CouchRest::Model::Base property :id, Integer property :first_name, String property :last_name, String end I would like to be able to get the list of the model columns, e.g., the result of BdsDataAuthor.columns woul...