• Save
Rails Couch Db Presentation
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Rails Couch Db Presentation

on

  • 475 views

 

Statistics

Views

Total Views
475
Views on SlideShare
475
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

CC Attribution License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Rails Couch Db Presentation Presentation Transcript

  • 1. Bagi Levente Rails + CouchDB tapasztalatok Ruby Meetup, Budapest 2009. november 19.    
  • 2. Plugin­ek  RelaxDB  CouchRest (AuthLounge miatt)    
  • 3. Migrációk + rake couchdb:migrate    
  • 4. Homogén dokumentumok (1)  Ha ”külső kulcs” módon hivatkozunk egy  dokumentumra, nem kell a típust is tárolni  RelaxDB:   doc.relaxdb_class = 'Article'  CouchRest:  doc.couchrest­type = 'Article'    
  • 5. Homogén dokumentumok (2)  Egyes funkciók általánosabban megírhatók  Comment:   content_id → Article, Image, ...  Wiki funkcionalitás:  Article.wiki_content   Image.wiki_content     
  • 6. Wiki (1)  Recipe < RelaxDB::Document  acts_as_relaxedwiki_document  include RelaxedWiki::Document  property :wiki_content  before_save  doc.generate_wiki_content  doc.parse_wiki_content  RelaxedWiki::HistoricDocument.create    
  • 7. Wiki (2)  Routing: /recipes/Muffin → RecipeController /ingredients/Apple → WikiController  Wiki_Controller  show, edit, update, changelog, version    
  • 8. Wiki (3)  View:  class + slug → doc    
  • 9. Kérdések? bagilevi@gmail.com http://github.com/bagilevi