This repository was archived by the owner on May 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathREADME
More file actions
41 lines (27 loc) · 1.22 KB
/
Copy pathREADME
File metadata and controls
41 lines (27 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
=== What's this? ===
Delayed Job Admin provides a handy little interface to help with debugging failed jobs created by the delayed_job plugin. Explore /examples for more details. A static example is at http://eric.datacratic.com/projects/delayed_job_admin/examples/index.html.
=== Requirements ===
Supports Safari 3 and Firefox 3.5
Requires jQuery 1.3.2 for JavaScript behavior
CSS assumes a reasonable default style (e.g. Yahoo's reset.css)
=== Installation ===
script/plugin install git://github.com/eac/delayed_job_admin.git
rake delayed_job_admin:copy_assets
Ensure the style is included in your layout:
<%= stylesheet_link_tag 'delayed_job_admin' %>
Before the </body> tag in your layout, add:
<%= yield :javascript %>
=== Usage ===
Access via delayed_jobs_path at /delayed_jobs, or define a custom route, example:
map.namespace :admin do |admin|
admin.resources :jobs, :namespace => nil, :controller => 'delayed_jobs'
end
=== Security ===
By default job management is publicly accessible, to inherit from a controller that restricts public access, create lib/delayed_job_admin/config.rb:
module DelayedJobAdmin
module Config
def self.parent_controller_class
YourSecureController
end
end
end