Skip to content

Instantly share code, notes, and snippets.

development:
adapter: postgresql
encoding: unicode
database: black_swan_development
pool: 5
username: andyjbas
password:
test:
adapter: postgresql
<%= form_for(@order) do |f| %>
<% if @order.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@order.errors.count, "error") %> prohibited this order from being saved:</h2>
<ul>
<% @order.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
# orders show
<%= @order.status %>
Line_items:
<br>
<% @order.line_items.each do |item| %>
<%= item.notes %>, <%= item.units %>
<% end %>
html {
background: url('../images/whitebkg.jpg') repeat;
background-color: transparent;
height: 100%
}
body {
height: 100%;
background-color: transparent;
}
Place Div/Tot Div Guntime PerF 1sthalf 2ndhalf 100m Name Club Nettime
===== ======= ===== ======= ==== ======= ======= ====== ========================= ========================== =======
1 1/24 M3034 24:46 866 12:11 12:35 15.88 Andy Bas Prairie Inn Harriers 24:46
2 1/47 M4044 25:03* 856 12:22 12:41 17.52 Some Name Yo Prairie Inn Harriers Runni 25:03
class Book
def initialize
end
attr_reader :title
def title=(string)
@title = string.titlize
end
class RPNCalculator
attr_accessor :stack
def initialize
self.stack = Array.new
end
def push(val)
self.stack.push(val.to_f)
end
$("#feed").on("click", ".multicheck", function(e) {
$(this).toggleClass("checked");
toggleSorting(this);
return false;
});
function Car( model, year, miles ) {
this.model = model;
this.year = year;
this.miles = miles;
}
// Note here that we are using Object.prototype.newMethod rather than
function Car( model, year, miles ) {
this.model = model;
this.year = year;
this.miles = miles;
}
// Note here that we are using Object.prototype.newMethod rather than