Ruby on Rails Tuesday, March 24, 2015


On Tuesday, March 24, 2015 at 10:26:00 AM UTC, Rails_beginner wrote:
= render partial: 'admin/delayed_jobs/list_header'
-@jobs.each do |job|
   = link_to job.id, job


This will try to call delayed_backend_active_record_job_path in order to turn the job object into the path (by default the class name is used to select which route should be used). If it should be using something else then you need to be explicit, e.g. 

    link_to job.id, admin_delayed_job_path(job)
 
if that is where it should go

Fred

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d5077cd5-75a6-4528-bbbb-f301a813aab7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment