18

I have the following url structure in rails routes:

match '/financial-dictionary/:letter' => 'learning_center#dictionary', :as => :lc_dictionary

Do i need a leading slash in front of "financial-dictionary"? What will happen if i remove it?

Tamik Soziev
  • 14,307
  • 5
  • 43
  • 55

1 Answers1

10

Short answer: nope, you don't need.

You might want to read http://guides.rubyonrails.org/routing.html :)

jipiboily
  • 1,240
  • 10
  • 17