Mathias
> On Fri, May 14, 2010 at 7:52 PM, Linicks <
lini...@gmail.com> wrote:
> > All,
> > I'm just starting to work with Rails3 Beta3 and couch_potato
> > 0.2.31. I've started to create a very simple application to get a
> > feel for couch potato. I've created a model:
>
> > class Entry
> > include CouchPotato::Persistence
>
> > property :device, :type => :string
>
> > view :all, :key => :created_at
> > end
>
> Hi,
>
> no need to specify the type here, just property :device, CouchPotato
> will deal with native types like strings automatically. Plus, the type
> would have to be a class, so :type => String, and not a symbol.
I made the changes that you recommended, and I believe that things are
working properly now. I'm not sure where my train of thought was at
the time, but I think I may have been confused by this example:
class User
property :name
property :bio
view :all, :key => :created_at, :properties => [:name], :type
=> :properties
end
Is there a basic demo application like a blog using couch_potato that
can be used for a reference? Being new to CouchDB and Couch Potato,
it would be very helpful to have as a clear use pattern of the API for
those dipping there toes into the "NoSQL" water for the first time.
Many thanks for the clarification/help!
-Nick
>
> Cheers, Mathias
> --
http://scalarium.com|http://paperplanes.dehttp://
twitter.com/roidrage