index.rb routing logic complete - first pass