Code

From mx Help Wiki
Revision as of 13:12, 14 March 2007 by Matt (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

A whiteboard for Code snippets, notes, etc. that might otherwise be lost or might be useful down the road, etc.

Console!

ruby script/console <environment>

Add a number of empty lots

$person_id = 2
$proj_id = 51
@proj = Proj.find(51)
r = 0
while r < 800 do
l = Lot.new(:otu_id => 8222, :key_specimens => 999, :rarity => , :source_quality => , :notes => 'Auto-created for ETOH move.')
l.save!
r += 1
end
Personal tools