undefined method `size' for nil:NilClass (NoMethodError) index.rb:73