Topic: HOWTO: Tutorial and Example App for Rails 3 + Mongoid + Devise

I've put together an example application that demonstrates Mongoid and Devise working together on Rails 3.

Mongoid is for data storage (alternative to SQL databases). Devise is for authentication (alternative to RESTful authentication or Authlogic).

It's on GitHub:

rails3-mongoid-devise example app

There's a step-by-step tutorial on the wiki that shows how to build it.

There's also an application template generator so anyone can use the example as a beginning point for a new Rails app.

Right now (24 June 2010) it requires:
* ruby (version 1.8.7 or 1.9.2)
* rails (version 3.0.0.beta4)
* mongoid (version 2.0.0.beta7)
* bson_ext (version 1.0.1)
* devise (version 1.1.rc2)

There are options to use Haml and Heroku as well.

Re: HOWTO: Tutorial and Example App for Rails 3 + Mongoid + Devise

Thanks! I used it yesterday, had not noticed it was so fresh smile

Re: HOWTO: Tutorial and Example App for Rails 3 + Mongoid + Devise

The example app and tutorial is now part of the Rails Apps project on GitHub:

Tutorial for Rails 3, Mongoid, Devise by Daniel Kehoe

Example app using Rails 3, Mongoid, Devise by Daniel Kehoe

There are options to use RSpec, Cucumber, jQuery, Haml, and Heroku as well.

Re: HOWTO: Tutorial and Example App for Rails 3 + Mongoid + Devise

The tutorial doesnt work whatsoever on windows... so many of these gems and tutorials dont work in windows... this kind of makes me want to stop with ruby on rails hmm

Re: HOWTO: Tutorial and Example App for Rails 3 + Mongoid + Devise

Have you tried Rails Installer? Everything you need to hit the ground running with Windows.

The tutorials at the Rails Apps project on GitHub are an open source, community effort so any changes you can offer to get them working on Windows will be welcome. Post to the GitHub issues if you need help.