Skip to content

Instantly share code, notes, and snippets.

class Book
def initialize
end
attr_reader :title
def title=(string)
@title = string.titlize
end
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
html {
background: url('../images/whitebkg.jpg') repeat;
background-color: transparent;
height: 100%
}
body {
height: 100%;
background-color: transparent;
}
# orders show
<%= @order.status %>
Line_items:
<br>
<% @order.line_items.each do |item| %>
<%= item.notes %>, <%= item.units %>
<% end %>
<%= 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>
development:
adapter: postgresql
encoding: unicode
database: black_swan_development
pool: 5
username: andyjbas
password:
test:
adapter: postgresql