Delayed_job Won't Run User defined method
问题 I have been trying to get DelayedJob to run some user defined methods in the background. For this test case I defined the following method in a helper: def test_case u = User.new u.first_name = "JimBob" u.last_name = "joe" u.email = "itworked@eureka.com" u.password = "sailsJ123" u.password_confirmation = "sailsJ123" u.save end Then, in a controller action, I define: def action_name #whatever it does outside of this test_case end This causes test_case to create a new user when the action here