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 trialMelodie Joseph
2,355 PointsHow do I toggle between the .rb file and the console view??
I have to close the console in order to code in the .rb file- both console and .rb have enough space each. Help please!
1 Answer
Martin Cornejo Saavedra
18,132 PointsIf you are using workspaces, then to select the .rb file click on the tab with the .rb namefile(very important). To select the console click on it till the cursor appears and blinks a couple of times.
Jacob Martin
4,182 PointsJacob Martin
4,182 PointsWhen you type in 'irb' you enter the interactive environment. To leave the interactive environment type 'exit', 'exit irb', or 'quit'. If you typed 'irb' multiple times you may need to press the 'exit' command multiple times. Type in ruby followed by the name of the file.
To toggle between them you should just click. Possibly refresh if this doesn't work, sometimes the workspace glitches. What you are explaining is very odd, if this does not cover your issue feel free to comment with more detail.