1

Is there a difference between these two ways of defining root in my Rails project's routes file?

root :to => 'Something#index'

root to: 'Something#index'

The second way seems like a more straight-forward way.

Community
  • 1
  • 1
Max Wofford
  • 253
  • 3
  • 13

0 Answers0