DISQUS

A little place of calm: A little place of calm » Blog Archive » CouchDB on Rails (part 1 of ?)

  • langalex · 1 year ago
  • aimee · 1 year ago
    Thank you Alex, i will try them all.
  • PaulCarey · 1 year ago
    'Them all' also includes RelaxDB. I've written a merb specific tutorial, but if you're interested, you should be able to follow along with Rails.

    http://dev.strawberrydiva.com/relax_with_merb_a...
  • aimee · 1 year ago
    Hi Paul, ah, that looks good! It's the most complete tutorial i've seen so far.

    One question ... you seem to be using CouchDB as if it were a relational database, with separate models for posts and ratings. This makes a lot of sense because Rails/Merb are well trained to deal with this sort of design. But how about nesting ratings within a post document ... could you do that?

    For another example, see my part 3 about tracks on a CD. I use nested JSON to include them in the CD document. CouchDB is delighted to accept that sort of format. How might RelaxDB handle it?
  • PaulCarey · 1 year ago
    Aimee, yep, you could do - example below. RelaxDB embodies merely one way to use CouchDB - that it promotes an object / id approach may or may not be appropriate depending on an application's needs. As of this afternoon, it also offers experimental support for explicit denormalisation.

    class CD "The Holy Pictures")
    tracks = []
    tracks < "I Heard Wonders", "length" => "5:35"}
    tracks < "Story Of The Ink", "length" => "5:23"}
    thp.tracks = tracks
    thp.save

    thp = RelaxDB.load(thp._id)
    puts thp.tracks[1]["title"]
  • PaulCarey · 1 year ago
    Try http://friendpaste.com/vtAFKdtP instead of the mangled snippet
  • aimee · 1 year ago
    Hi Paul, nice job, thanks!

    Oh yeah, Wordpress swallowed a lot of your code, didn't it! Thanks for the Friendpaste link. I notice Friendpaste is powered by CouchDB! Awesome! :)
  • panini · 2 months ago
    I can't help but to agree with Mark you are indeed a go writer Aimee, you are always giving me an awe with your post
  • Mark · 1 year ago
    You're an unusually good writer, Aimee.

    Thanks for this series of posts. I'm looking forward to the next 6 (that exist so far).
  • aimee · 1 year ago
    Wow, thanks Mark! I've unfortunately not done any CouchDB lately, just haven't had the time ... but i definitely intend to come back to it and finish off this series.
  • Marcos Ricardo · 11 months ago
    Hi Aimee,

    I was looking for some kind of help on start using CouchDB with Rails when fortunately Google brings me here.

    I start following you in this series today, and for sure will enjoy the ride.

    Thanks a lot.
  • MarbleHost · 8 months ago
    I first saw this on the python-list. Someone (sorry, couldn't remember any way to dig back a name) gave an explanation that I found really reasonable: the space disambiguates that from a float e.g. 3.040
  • Polaroid Sunglasses · 3 months ago
    Thanks for the information Aimee..
    this help a lot... Great post.. I will back for more..
  • Earn Money · 2 months ago
    Hi Paul, ah, that looks good! It's the most complete tutorial i've seen so far. This is very deatiled and easy to understand.
  • panini · 2 months ago
    I have to try this on my own, well thanks for sharing it with us. Like Mark I'm looking forward to see more of your post
  • panini · 2 months ago
    I have to try this on my own, well thanks for sharing it with us. Like Mark I'm looking forward to see more of your post
  • panini · 2 months ago
    I have to try this on my own, well thanks for sharing it with us. Like Mark I'm looking forward to see more of your post
  • ngan hang · 2 months ago
    nice info, thanks for your sharing
  • ngan hang · 2 months ago
    nice post, thanks for sharing.
  • Tuyen dung · 2 months ago
    nice post, thanks for sharing.
  • jun611 · 2 months ago
    Hi Aimee.

    I appreciate your all attemps.
    In Japan, I have few information about CouchDB on Rails.
    Your series of posts help a lot.

    Thanks!!
  • ngan hang · 2 months ago
    thanks for sharing, i will try.
  • club penguine cheats · 2 months ago
    I've written a merb specific tutorial, but if you're interested, you should be able to follow along with Rails.
  • club penguine cheats · 2 months ago
    I've written a merb specific tutorial, but if you're interested, you should be able to follow along with Rails.
  • Free Kids Games · 2 months ago
    Fantastic tutorial. Thanks for the help!
  • bmcvn · 1 week ago
    Thanks for sharing
  • Shingles Symptoms · 1 month ago
    Ruby is really nice & useful. I am using this. It is helping me a lot.
  • Jay @ work at home · 1 month ago
    CouchDB on rails is the coolest. Great post
  • howtogetridofbackacne · 1 month ago
    Hey, what's up with your blog? I'm using K-Meleon and the sidebar is all messed up!

    -James from How to Get Rid of Back Acne
  • howtogetridofbackacne · 1 month ago
  • jaynepetters1234 · 4 weeks ago
  • bondage · 3 weeks ago
    I have to try this on my own, well thanks for sharing it with us. Like Mark I'm looking forward to see more of your post