Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Ruby

Testing 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
MOD
Jeff Muday
Treehouse Moderator 27,816 Points

Michael, 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