Ruby Building Web Apps with Sinatra ERB Templates Embedding Page Data with ERB

Peter Buckwalter
Peter Buckwalter
Pro Student 6,846 Points

Why no %20

When I change my url to "localhost:4567/nick pettit" I end up on a google search results page.

Everything works fine if I manually enter "localhost:4567/nick%20pettit"

2 Answers

Jay McGavren
Jay McGavren
Treehouse Teacher

This is probably the result of the particular web browser you're using - it must not automatically encode illegal characters like space. So yes, you'll probably need to type %20 in place of spaces when using the address bar.