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
if($("plane_airport_id")) { | |
new Form.Element.Observer('plane_airport_id', 0.1, function(event) { | |
var string = $F('plane_airport_id'); | |
if (string.length >= 3) { | |
new Ajax.Request('/airports', {method:'get',parameters:{search:string}, | |
onSuccess: function(transport) { | |
var airports = transport.responseJSON; | |
var lis = $('airport-list').descendants(); | |
if (lis.length > 0) { | |
lis.each(function(l) { |
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
function grabBookings(date) { | |
$$(".booking").each(function(b) { | |
b.remove(); | |
}); | |
if (!$('ajax-loader')) { | |
$('bookings').insert("<img src='/images/ajax-loader.gif' id='ajax-loader' />"); | |
} | |
new Ajax.Request(date.readAttribute("href"), {method:"get", evalJS:true, onSuccess:function(transport) { | |
var bookings = transport.responseJSON; | |
$('ajax-loader').remove(); |
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, |
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
<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
<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
<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
[/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
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
# 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]' %> |
OlderNewer