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 AbsenceTransition < ActiveRecord::Base | |
include Statesman::Adapters::ActiveRecordTransition | |
belongs_to :absence, inverse_of: :absence_transitions | |
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
Started POST "/chargify/hooks" for 50.112.147.117 at 2015-01-12 08:23:45 +0000 | |
Processing by Chargify::HooksController#handle as XML | |
Parameters: {"id"=>"29653139", "event"=>"signup_success" | |
.... |
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
# View | |
<%= form_tag '/flash_cards/create' %> | |
...other form content e.g. body... | |
<%= text_field_tag 'line1[body]' %> | |
<%= check_box_tag 'line1[centred]' %> | |
<%= text_field_tag 'line2[body]' %> |
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 NewContact < ActiveRecord::Base | |
file = File.open("#{Rails.root}" + "/config/database.yml") | |
dbconfig = YAML::load(file) | |
establish_connection(dbconfig["development"]) | |
self.table_name = "contacts" | |
end | |
class NewDocument < ActiveRecord::Base |
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
[/opt/ruby/lib/ruby/gems/2.1.0/specifications/railties-4.0.2.gemspec] isn't a Gem::Specification (NilClass instead). | |
[/opt/ruby/lib/ruby/gems/2.1.0/specifications/orm_adapter-0.5.0.gemspec] isn't a Gem::Specification (NilClass instead). | |
[/opt/ruby/lib/ruby/gems/2.1.0/specifications/curb-0.8.5.gemspec] isn't a Gem::Specification (NilClass instead). | |
[/opt/ruby/lib/ruby/gems/2.1.0/specifications/devise-3.2.2.gemspec] isn't a Gem::Specification (NilClass instead). | |
[/opt/ruby/lib/ruby/gems/2.1.0/specifications/warden-1.2.3.gemspec] isn't a Gem::Specification (NilClass instead). | |
[/opt/ruby/lib/ruby/gems/2.1.0/specifications/railties-4.0.2.gemspec] isn't a Gem::Specification (NilClass instead). | |
[/opt/ruby/lib/ruby/gems/2.1.0/specifications/orm_adapter-0.5.0.gemspec] isn't a Gem::Specification (NilClass instead). | |
[/opt/ruby/lib/ruby/gems/2.1.0/specifications/curb-0.8.5.gemspec] isn't a Gem::Specification (NilClass instead). | |
[/opt/ruby/lib/ruby/gems/2.1.0/specifications/devise-3.2.2.gemspec] isn't a Gem::Specification |
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
<Txn> | |
<Transaction success="0" reco="U5" responseText="DECLINED" pxTxn="true"> | |
<Authorized>0</Authorized> | |
<ReCo>U5</ReCo> | |
<RxDate>20120521195822</RxDate> | |
<RxDateLocal>20120521195822</RxDateLocal> | |
<LocalTimeZone>UTC</LocalTimeZone> | |
<MerchantReference>Test Transaction</MerchantReference> | |
<CardName></CardName> | |
<Retry>0</Retry> |
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
<Txn> | |
<PostUsername></PostUsername> | |
<PostPassword></PostPassword> | |
<CardHolderName>R Fisher</CardHolderName> | |
<CardNumber>4111111111111111</CardNumber> | |
<Amount>1.00</Amount> | |
<DateExpiry>0914</DateExpiry> | |
<Cvc2>345</Cvc2> | |
<InputCurrency>GBP</InputCurrency> | |
<TxnType>Purchase</TxnType> |
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
<div id="flash"> | |
<% flash.each do |key, value| -%> | |
<div id="flash_<%= key %>"><%=h value %></div> | |
<% 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
class AccountsController < ApplicationController | |
skip_before_filter :find_account, :only => [:new,:create] | |
skip_before_filter :authenticate_user!, :only => [:new,:create] | |
before_filter :ensure_user_authorised, :except => [:new,:create] | |
layout 'application', :only => [:show,:edit,:update,:destroy] | |
layout 'site', :only => :create | |
layout 'signup', :only => :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
/* http://meyerweb.com/eric/tools/css/reset/ */ | |
/* v1.0 | 20080212 */ | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, font, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, | |
b, u, i, center, | |
dl, dt, dd, ol, ul, li, |
NewerOlder