adds main.rb requirement into index.rb in controller