Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby Building Web Apps with Sinatra Finishing Touches Layouts

Christopher Phillips
Christopher Phillips
10,061 Points

Error out when including question mark in title

Suppose this app was a blog and we had the title including a question mark. How would we get around the error that accompanies this specific code? I'm honestly not even sure why it's erroring out. I'm sure it's more for an advanced course but I'm curious.

1 Answer

Jay McGavren
STAFF
Jay McGavren
Treehouse Teacher

You'd probably use a database instead of individual files. :) A question mark isn't valid for use in file names on most OSes. We stored data in files for this course because we didn't want to make people figure out Sinatra and databases at the same time, but Rails and most serious Sinatra apps use databases for speed, and for reasons like this.