This file contains hidden or 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
namespace :mailer do | |
controller :recipients do | |
resources :recipients | |
get 'mail' => :new_mail | |
post 'mail' => :send_mail | |
end | |
end |
This file contains hidden or 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
<%= content_tag :div, :class => 'side_box' do %> | |
<%= content_tag :fieldset do %> | |
<%= content_tag :legend, 'Filter by date' %> | |
<%= content_tag :ol do %> | |
<%= content_tag :li do %> | |
<%= label_tag 'start-date', 'Starting date:' %> | |
<%= text_field_tag 'start-date', nil, :class => 'date-pick' %> | |
<% end %> | |
<%= content_tag :li do %> | |
<%= label_tag 'end-date', 'Ending Date:' %> |
This file contains hidden or 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
class SOAPReport | |
def initialize(options) | |
# initialize instance variables | |
@path = { | |
:pdf => File.join BASE_REPORT_PATH, '.pdf', | |
:xls => File.join BASE_REPORT_PATH, '.xls' | |
} | |
@options = options | |
@me = self.class.name |
This file contains hidden or 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
report = 'MonthlyTop3DenialCodes' | |
request_date = Date.today | |
soap_client = LolSoap::Client.new(ACS_SOAP[:definitions][:report_data_service]) | |
soap_request = soap_client.request('GetMonthlyReportData') | |
soap_request.body do |b| | |
b.ReportName report | |
b.ReportYear request_date.year | |
b.ReportMonth request_date.strftime("%m") | |
end | |
request_http = Patron::Session.new |
This file contains hidden or 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
<%= content_tag :header do %> | |
<%= content_tag :div, content_tag(:h2, '1-888-761-2627'), id: "header-left", class: "cms-editable" %> | |
<%= content_tag :div, image_tag("sponsornation-logo.png", :size => "662x218"), id: "header-mid" %> | |
<%= content_tag :div, render(partial: 'shared/social_buttons'), id: "header-right" %> | |
<% end %> | |
--- VS --- | |
<header> | |
<div id="header-left" class="cms-editable"> |
This file contains hidden or 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
Alac | |
-- 13&God | |
---- 2011 Own Your Ghost | |
-- Massive Attack | |
---- 2011 Heligoland |
This file contains hidden or 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
admin_coaches /admin/coaches(.:format) admin#coaches | |
admin_posts /admin/posts(.:format) admin/posts#index | |
admin_campaigns /admin/campaigns(.:format) admin/campaigns#index |
This file contains hidden or 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
new (function(window, document, $) | |
{ | |
var cosby_tpl; | |
var macinyos = false; | |
var amiyos = false; | |
var z = 1000; | |
/** | |
* It's Cosby time. | |
*/ |
This file contains hidden or 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
class SoapReport | |
def initialize(report_name, request_date) | |
@soap_client = LolSoap::Client.new(ACS_SOAP[:definitions][:report_data_service]) | |
soap_request = build_request report_name, Date.parse(request_date) | |
response = build_response soap_request | |
puts response | |
end | |
def build_request(report_name, request_date) | |
soap_request = @soap_client.request 'GetMonthlyReportData' |
This file contains hidden or 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
def build_response(soap_request, retries = 0) | |
request_uri = URI.parse soap_request.url | |
request_http = Patron::Session.new | |
request_http.timeout = 10 | |
request_http.base_url = request_uri.host | |
begin | |
raw_response = request_http.post(request_uri.path, soap_request.content, soap_request.headers).body | |
rescue Patron::TimeoutError | |
Rails.logger.debug "Patron timed out while attempting to connect to the Web Service" | |
if retries = 5 then throw |
OlderNewer