Ruby MongoDB FAQ This is a list of frequently asked questions about using Ruby with MongoDB. If you have a question you'd like to have answered here, please post your question to the mongodb-user list. Can I run (insert command name here) from the Ruby driver? Yes. You can run any of the [available database commands|List of Database Commands] from the driver using the DB#command method. The only t
■ [ruby] Rubyで書かれたミニマルなブログエンジン、toto http://cloudhead.io/toto Sinatraすら使わず、Rackのみで実装されている 記事のバージョン管理はgitで 記事のマークアップはmarkdownで(変更可能らしい) コメントはdisqusで サーバはThinなりPassengerなりunicornなり(CGIもいけそうな気がする) 記事はテキストファイルに書く 最初の数行にメタデータ(タイトルとか)を書く。 独自のメタデータを書いて、ERBテンプレートからそれを表示するようなカスタマイズも可能 データベースが不要で、テキストファイルを編集してgitでpushするだけっていうシンプルさが良いかも。 使い方 すぐに使い始められる状態になったものがgithubのcloudhead/dorothyにあるので、それをcloneする。 Herokuに
This document summarizes and compares various Ruby driver and ORM libraries for MongoDB, including Mongoid, MongoMapper, Mongomatic, and MongoODM. It discusses their features like querying syntax, associations, embedded documents, validation, and ActiveModel integration. It also provides code examples for creating and querying documents using these different libraries.
Join us Sept 17 at .local NYC! Use code WEB50 to save 50% on tickets. Learn more >
hatena.vimの動作確認も兼ねて。 unscoped で論理削除されたものも引っ張ってこれるかと思ったら違った。 # mongoid-2.0.2/lib/mongoid/paranoia.rb <中略...> module ClassMethods #:nodoc: # Override the default +Criteria+ accessor to only get existing # documents. Passes all arguments up to +NamedScope.criteria+ # # Returns: # # A +Criteria+ for deleted_at not existing. def criteria(*args) super.where(:deleted_at.exists => false) end # Find delete
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く