寻找如何使用 Rails3 设置 mongo_mapper、devise、haml 的指南
对于当前的 git (master) 分支,是否有 mongo_mapper、haml、rails3 和 devise 的完整设置指南?最近所有这些框架/库中发生了很多变化。我想知道是否有人已经启动并运行它并可以在 github 上分享它或提供一些指导......
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...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
不幸的是,目前这还不容易实现。支持 Rails 3 的唯一版本的设计已删除 MongoMapper 的 ORM 适配器,因为 MM 依赖于自定义的可验证 gem,该 gem 使用与 ActiveRecord/ActiveModel 样式不同的语法。请参阅此 github 问题: http://github.com 然而/plataformatec/devise/issuesearch?state=close&q=mapper#issue/160
HAML、SASS、Devise 和 Mongoid on Rails3 非常简单。很遗憾,因为我真的很喜欢 MongoMapper 和 Devise(我创建了前面链接的 Rails 2 示例)。
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).
我找到了一个示例应用程序作为 Devise 和 Mongomapper 的基础。它使用 HAML 和 SASS。它托管在 Github 上:
http://github.com/theshortcut/devise_mongomapper_example
希望这会有所帮助 - 它当然帮助了我。
干杯
卡普斯洛克
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
Railscasts 在 Devise 设置和自定义方面有一些 Rails 3 特定的转换 - 可能有用,
http://railscasts.com/episodes/209-introducing-devise" rel="nofollow noreferrer">http:// /railscasts.com/episodes/209-introducing-devise
(210 是定制 Devise 的第二个演员)
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)