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 trialMichael Constantinou
6,758 PointsTesting with Ruby
Hi, I really like the Treehouse style and find courses here an effective learning tool. I've recently started a role as a Ruby on Rails junior and feel I could benefit my becoming better at testing which is a core part of development. I've noted that there are courses on testing on many languages at Treehouse but none for Ruby. Is a Ruby Testing course on the horizon?
1 Answer
Jeff Muday
Treehouse Moderator 28,722 PointsMichael, you are correct. I can definitely run Sinatra without explicitly setting the binding (because it is binding to localhost by default (127.0.0.1).
It might be the VSC debugger attached to Ruby that is causing the need for an explicit binding.
Here is the Sinatra docs:
http://sinatrarb.com/configuration.html#bind---server-hostname-or-ip-address