October 2010
1 post
5 tags
Handy Bits for Mongoid with Rails 3
Rails 3 and Mongoid are just peachy. Here are a couple of development conveniences for using them together.
Pop this snippet in your ~/.irbrc to show the raw JavaScript queries that Mongoid is running as you play with your app in the Rails console (and/or SQL, when you’re using ActiveRecord). Formatting isn’t great for Mongo queries, but it’s helpful nonetheless.
Setting...