Delayed_Job - Rake jobs:work vs. script/delayed_job start - 路由 URL 问题
我正在运行 Rake 0.9.2、Ruby 1.9.2、Rails 3.0.9 和 Delayed_Job 2.1.4,我试图找出为什么当我运行以下
RAILS_ENV=development script/delayed_job start - 一切运行良好
RAILS_ENV=development bundle exec rake jobs:work - 我明白了{您不能再直接调用 ActionMailer::Base.default_url_options 。您需要设置config.action_mailer.default_url_options。如果您独立使用 ActionMailer,则需要直接包含路由 url_helpers。}
我正在尝试将其添加到我的welcome.html.erb 消息中
<p><%= link_to "#{new_user_session_url(:subdomain => @account.subdomain)}", new_user_session_url(:subdomain => @account.subdomain) %></p>
I am running Rake 0.9.2, Ruby 1.9.2, Rails 3.0.9, and Delayed_Job 2.1.4 and I am trying to figure out why when I run the following
RAILS_ENV=development script/delayed_job start - Everything runs fine
RAILS_ENV=development bundle exec rake jobs:work - I get this {You can no longer call ActionMailer::Base.default_url_options directly. You need to set config.action_mailer.default_url_options. If you are using ActionMailer standalone, you need to include the routing url_helpers directly.}
I'm trying to add this to my welcome.html.erb message
<p><%= link_to "#{new_user_session_url(:subdomain => @account.subdomain)}", new_user_session_url(:subdomain => @account.subdomain) %></p>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论