Copied from: https://rails.lighthouseapp.com/projects/8994/tickets/2389
The problem occurs(for me) when cache_classes
is set to false
class FeedEvent < ActiveRecord::Base
end
class ProjectFeedEvent < FeedEvent
end
Copied from: https://rails.lighthouseapp.com/projects/8994/tickets/2389
The problem occurs(for me) when cache_classes
is set to false
class FeedEvent < ActiveRecord::Base
end
class ProjectFeedEvent < FeedEvent
end
- if f.object.file? | |
= f.input :file, label: false, wrapper: :append do | |
= f.input_field :file, as: :string, readonly: true | |
span | |
= link_to 'Download', f.object.file_url, class: 'btn' | |
= f.link_to_remove 'Remove document', class: 'btn btn-danger' | |
- else | |
= f.input :file, label: false, wrapper: :append do | |
= f.input_field :file, as: :file | |
span |
(: return a deep copy of the element and all sub elements :) | |
declare function local:copy($elements as element()+) as element()+ { | |
for $element in $elements | |
return element {node-name($element)} | |
{$element/@*, | |
for $child in $element/node() | |
return | |
if ($child instance of element()) | |
then local:copy($child) | |
else $child |
From http://en.wikibooks.org/wiki/Computer_programming/Functional_programming
Programmers are procrastinators. Get in, get some coffee, check the mailbox, read the RSS feeds, read the news, check out latest articles on technical websites, browse through political discussions on the designated sections of the programming forums. Rinse and repeat to make sure nothing is missed. Go to lunch. Come back, stare at the IDE for a few minutes. Check the mailbox. Get some coffee. Before you know it, the day is over.
declare function local:format-date($date as xs:string) | |
{ | |
format-date( | |
local:string-to-date(substring-after($date, ", ")), | |
"[Y][M][D]" | |
) | |
}; | |
declare function local:string-to-date($date as xs:string) as xs:date | |
{ |
Riif::IIF.new.trns do | |
row do | |
trnsid 123 | |
trnstype 'INVOICE' | |
date '8/31/1988' | |
accnt 'Accounts Receivable' | |
name 'Customer' | |
amount 20 | |
docnum 1 | |
clear 'N' |
http://www.redweek.com/resources/payment-method-comparison |
A clean workaround for running capybara tests on Rails with assets pipeline enabled.
Original: teamcapybara/capybara#500 (comment)