views:

491

answers:

4

is there a full setup guide for mongo_mapper, haml, rails3 and devise, for the current git (master) branches? a lot of things changed in all of those frameworks/libs lately. i was wondering if somebody has it up and running and can share it on github or give some pointers...

A: 

I found an example app to use as a base for Devise and Mongomapper. It uses HAML and SASS. It's hosted on Github:

http://github.com/theshortcut/devise_mongomapper_example

Hope this is helpful - it certainly helped me.

Cheers Kapslok

Kapslok
thanks for the pointer, actually this example is running on rails 2 and not on rails3 - with rails2 there are actually no problems, but i wanted to get everything up and running with rails3...
z3cko
+2  A: 

Unfortunately this isn't easily possible right now. The only versions of devise that support Rails 3 have removed the ORM adapters for MongoMapper due to MM relying on a custom validatable gem which uses a different syntax than the ActiveRecord/ActiveModel style. See this github issue: http://github.com/plataformatec/devise/issuesearch?state=closed&q=mapper#issue/160

HAML, SASS, Devise and Mongoid on Rails3 however is quite simple. It's a shame because I really like both MongoMapper and Devise (I created the Rails 2 example linked earlier).

Clay Ferris
+1  A: 

Devise dropped support for MongoMapper and now supports Mongoid. There's a complete example application for Rails 3 (beta 4) using Mongoid and Devise (with a detailed walkthough tutorial) at http://github.com/fortuity/rails3-mongoid-devise

Fortuity
A: 

Railscasts have a couple of Rails 3 specific casts on Devise setup and customizing - might be useful,

http://railscasts.com/episodes/209-introducing-devise

(210 is the second cast on customizing Devise)

Pasted