Always Get Better

Archive for December, 2010

How to Use Rails Generators with MongoDB

Tuesday, December 28th, 2010

The MongoDB classes do not come with default generators for Rails applications. In order to use the rails generate commands, you can use the indirect rails3-generators project available at

1. Download the generators into your application’s lib folder:
cd myapp
git clone git:// lib/generators

2. Install the rails3-generators gem
gem install rails3-generators

3. Add this to your project’s Gemfile
gem 'rails3-generators'

rails generate model ModelName --orm=mongo_mapper

Getting Site Info using BuiltWith

Saturday, December 18th, 2010

There are better tools that give more information than this one, but I wanted to point out the reports generated by BuiltWith.

BuiltWith scans your site and displays a nice description of site components it finds – useful for non-tech users who need to gain a quick understanding of the architecture used by a competitor or interesting site.