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 Build a Simple Ruby on Rails Application Building the Profile Page Scoping

I am having difficulty in all yml files because tabs and spaces are very particular.

I've been running into a lot of errors in my test because I formatted the yml files incorrectly. The video never mentions these issues but I am not able to use the tab button or leave any extra spaces or I run into errors in my test. Is this normal? Is is just a windows issue?

1 Answer

Seth Reece
Seth Reece
32,867 Points

This is the nature of yaml files. You cannot use tabs. You cannot use tabs as spaces. You can only use two taps on the space bar to indent. "Tabs have been outlawed since they are treated differently by different editors and tools. And since indentation is so critical to proper interpretation of YAML, this issue is just too tricky to even attempt." - From yaml faq