蜻蜓问题
我最近尝试在 Gemfile 中从 gem Rails 3.0.0.rc 切换到 Rails 3.0.0,这样做时,我在启动服务器时遇到了 Dragonfly 问题。错误消息显示:
/Library/Ruby/Gems/1.8/gems/aws-s3-0.6.2/lib/aws/s3/extensions.rb:206:in `const_missing': uninitialized constant Dragonfly::Config::HerokuRailsImages (NameError)
来自 /Users/erikosdling/Spatziba/config/initializers/dragonfly.rb:4
切换回 RC 没有帮助。有人知道出了什么问题吗?
我的 Dragonfly.rb 看起来像这样:
require "dragonfly"
app = Dragonfly::App[:images]
app.configure_with(Dragonfly::Config::HerokuRailsImages, "static.my-app-domain.com")
app.parameters.default_format = :jpg
Dragonfly.active_record_macro(:image, app)
任何帮助将不胜感激!
乙
I tried switching from gem rails 3.0.0.rc to rails 3.0.0 in my Gemfile recently and when doing so I got a problem with Dragonfly when starting the server. The error message says:
/Library/Ruby/Gems/1.8/gems/aws-s3-0.6.2/lib/aws/s3/extensions.rb:206:in `const_missing': uninitialized constant Dragonfly::Config::HerokuRailsImages (NameError)
from /Users/erikostling/Spatziba/config/initializers/dragonfly.rb:4
Switching back to RC doesn't help. Does anyone have an idea on what is wrong?
My dragonfly.rb looks like this:
require "dragonfly"
app = Dragonfly::App[:images]
app.configure_with(Dragonfly::Config::HerokuRailsImages, "static.my-app-domain.com")
app.parameters.default_format = :jpg
Dragonfly.active_record_macro(:image, app)
Any help would be greatly appreciated!
E
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请务必遵循Rails 3 安装说明。
Make sure to follow this Rails 3 installation instructions.