search for: sandwhich

Displaying 3 results from an estimated 3 matches for "sandwhich".

2012 Sep 23
1
ruby koans don't understand the principle sandwhich code
hello, Im still working on ruby koans. Now I have to do some sandwhich code. The exercise looks like this : require File.expand_path(File.dirname(__FILE__) + ''/edgecase'') class AboutSandwichCode < EdgeCase::Koan def count_lines(file_name) file = open(file_name) count = 0 while line = file.gets count += 1 end count...
2008 Oct 07
0
associations not saved in migration
...deli item.save! end end def self.down remove_column :menu_items, :deli_id end end class CreateTestMenuItemTypes < ActiveRecord::Migration def self.up type = MenuItemType.create :name => ''Sandwiches'' items = MenuItem.find_all_by_item_type "Sandwhich" for item in items do puts "item: #{item.name}, type id: #{type.id}" item.menu_item_type_id = type.id puts "item: #{item.name}, type id: #{item.menu_item_type_id}" item.save! end type = MenuItemType.create :name => ''Salads'...
2012 Feb 17
2
lmer - error message
Hi all, I am fairly new to mixed effects models and lmer, so bear with me. Here is a subset of my data, which includes a binary variable (lake (TOM or JAN)), one other fixed factor (Age) and a random factor (Year). lake FishID Age Increment Year 1 TOM 1 1 0.304 2007 2 TOM 1 2 0.148 2008 3 TOM 1 3 0.119 2009 4 TOM 1 4 0.053 2010 5