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
# config/initializers/amqp.rb | |
require 'amqp/utilities/event_loop_helper' | |
require 'amqp/integration/rails' | |
module AMQPManager | |
def self.start | |
AMQP::Utilities::EventLoopHelper.run | |
AMQP::Integration::Rails.start do |connection| | |
connection.on_error do |ch, connection_close| | |
raise connection_close.reply_text |
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
<html> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=UTF-8" /> | |
<title>Формачке</title> | |
<script type="text/javascript" src="jquery.min.js"></script> | |
<script> | |
$(function() { | |
$('#solve_1').click(function() { | |
if ($('#question_1_1').is(':checked')) { | |
$("#result").append("<div><p>Правильно!</p></div>"); |