This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "resque/tasks" | |
require "resque/failure/multiple_failure" | |
require "resque/failure_server" | |
task "resque:setup" => :environment do | |
Resque.before_fork = Proc.new { ActiveRecord::Base.establish_connection } | |
Resque::Failure.backend = Resque::Failure::MultipleFailure | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#password_prompt_form').submit (e) -> | |
e.preventDefault() | |
$.post this.action, | |
passcode: $('#passcode').val() | |
(data) -> $('#passcode_response').html(data) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#password_prompt_form').submit(function() { | |
$.post(this.action, { passcode: $('#passcode').val() }), function(data){ | |
$('#passcode_response').html(data); | |
}); | |
return false; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery -> | |
$('#password_prompt_form').submit -> | |
$.post(this.action, { passcode: $('#passcode').val() }) -> | |
$('#passcode_response').html(data) | |
return false |
NewerOlder