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

James Nelson
23,956 PointsUnable to create rb files
I have been working through the Ruby foundations course and have found that I am unable to create ruby files by typing in commands:
mate helloworld.rb
However I am able to create them using nano and then open these up using editors such as text mate and coda 2 via terminal. Is this a permissions issue? If so has anyone been able to resolve this issue?

John Romby Andersson
8,453 PointsHi again James,
Although the solution was simple, in this case, it's still common courtesy to leave a reply or at least choose a Best Answer. So would you be so kind mate?
Cheers John
5 Answers

John Romby Andersson
8,453 PointsHi James,
You simply need to install / activate the Terminal Shell support in TextMate.
Go into Preferences > Terminal and then click on Install under Shell support. Restart your Terminal and it should work. :)
Best regards John Romby

James Nelson
23,956 PointsHello John,
I am home now and able to test the tip you have provided. I am not seeing this as a tab in Textmate. Or did you mean terminal?
Thanks

James Nelson
23,956 PointsJust to add John, when I try to create a file e.g 'mate hello.rb' I would get an error such as
The file /~filepath/username/hello.rb does not exist.
Odd as I can create this file and open it with text mate and coda2

James Nelson
23,956 PointsNo need to be rude John. I'm on mobile for the next few days, will add a best answer once I confirmed it works.
Thanks

John Romby Andersson
8,453 PointsNow now, it seems I'm not the one being rude here. It was a fair request and I did give you at least 24 hours to respond Sir.
/John

James Nelson
23,956 PointsRight now you're being childish! As I said I'll test when I'm home, if it works I'll mark you up.
Cheers!

John Romby Andersson
8,453 PointsYou seem to be from a different planet Sir. I wish you luck.
/John
Stone Preston
42,016 PointsStone Preston
42,016 Pointscan you create other file types using the mate command? or is it just .rb files? do you get an error message?