title: deliver_later using sidekiq rails
body: <p>I tried to do deliver_later using sidekiq, but I got a error message.</p>
  
  <p>Here is my setup</p>
  
  <pre><code>* execute redis
  redis-server
  
  * execute sidekiq
  bundle exec sidekiq -q default -q mailers
  
  * Gemfile
  gem 'sidekiq'
  
  
  * application.rb
  config.active_job.queue_adapter = :sidekiq
  
  
  #send email
   UserMailer.account_activation(@user).deliver_later
  </code></pre>
  
  <p>I have no idea how to resolve the problem.
  Here is error message</p>
  
  <pre><code>50.345Z 41513 TID-oxh5ccnb8 ActionMailer::DeliveryJob JID-1c7ea4b33150d3805ff777aa INFO: start
  2016-11-18T17:13:50.413Z 41513 TID-oxh5ccnb8 ActionMailer::DeliveryJob JID-1c7ea4b33150d3805ff777aa INFO: fail: 0.068 sec
  2016-11-18T17:13:50.414Z 41513 TID-oxh5ccnb8 WARN: {"context":"Job raised exception","job":{"class":"ActiveJob::QueueAdapters::SidekiqAdapter::JobWrapper","wrapped":"ActionMailer::DeliveryJob","queue":"mailers","args":[{"job_class":"ActionMailer::DeliveryJob","job_id":"c2ee4092-4e73-4e1f-857f-3e081594c735","queue_name":"mailers","priority":null,"arguments":["UserMailer","account_activation","deliver_now",{"_aj_globalid":"gid://academic-lib/User/8"}],"locale":"en"}],"retry":true,"jid":"1c7ea4b33150d3805ff777aa","created_at":1479489230.323255,"enqueued_at":1479489230.3232949,"error_message":"No route matches {:action=&gt;\"edit\", :controller=&gt;\"account_activations\", :email=&gt;\"chandleryang76@gmail.com\", :id=&gt;nil} missing required keys: [:id]","error_class":"ActionView::Template::Error","failed_at":1479489230.4132302,"retry_count":0},"jobstr":"{\"class\":\"ActiveJob::QueueAdapters::SidekiqAdapter::JobWrapper\",\"wrapped\":\"ActionMailer::DeliveryJob\",\"queue\":\"mailers\",\"args\":[{\"job_class\":\"ActionMailer::DeliveryJob\",\"job_id\":\"c2ee4092-4e73-4e1f-857f-3e081594c735\",\"queue_name\":\"mailers\",\"priority\":null,\"arguments\":[\"UserMailer\",\"account_activation\",\"deliver_now\",{\"_aj_globalid\":\"gid://academic-lib/User/8\"}],\"locale\":\"en\"}],\"retry\":true,\"jid\":\"1c7ea4b33150d3805ff777aa\",\"created_at\":1479489230.323255,\"enqueued_at\":1479489230.3232949}"}
  2016-11-18T17:13:50.414Z 41513 TID-oxh5ccnb8 WARN: ActionView::Template::Error: No route matches {:action=&gt;"edit", :controller=&gt;"account_activations", :email=&gt;"chandleryang76@gmail.com", :id=&gt;nil} missing required keys: [:id]
  2016-11-18T17:13:50.414Z 41513 TID-oxh5ccnb8 WARN: /Users/chandler/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_dispatch/journey/formatter.rb:50:in `generate'
  /Users/chandler/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_dispatch/routing/route_set.rb:629:in `generate'
  /Users/chandler/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_dispatch/routing/route_set.rb:660:in `generate'
  /Users/chandler/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_dispatch/routing/route_set.rb:707:in `url_for'
  </code></pre>