首先推荐一个rails文字教程网站:
http://railsapps.github.com/
使用rails + mongodb
详细见http://railsapps.github.com/tutorial-rails-mongoid-devise.html