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

John Curry
John Curry
7,017 Points

Can't pick "Git" when trying to install rails on cloud 9

watching video for installing ruby on rails in the Cloud 9. I follow along and it does not give me the option to click the "Git" option, like he tells us to in the video. Hosted, FTP and SSH are my only bubble options. Down below that I can choose node.js or HTML5 or PHP or python/django or Ruby on Rails or Custom.

I tried using the bubble option of "Hosted". I also tried clicking on the "ruby on rails" box, and I don't know if they worked or not, but when I clicked "Create" I ended up with "Error: Forbidden" but I can just close that alert and keep going. Why isn't Git available to choose for me? the link to the instructional video is: http://teamtreehouse.com/library/programming/build-a-simple-ruby-on-rails-application/getting-started-with-rails/installing-rails-on-cloud9

10 Answers

Hi jason...I followed all instructions..when I typed in rails server -b $IP -p $PORT command....

I get the following error:

Cloud9 Your application is running at http://undefined.undefined.c9.io

Can you please help figure this one out?

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Hi John,

I'm really sorry about that. It looks like the layout of Cloud9 changed slightly since we recorded the videos. Try selecting a Ruby on Rails application and following along from there. It should all work. We'll be re-doing those videos soon.

John Curry
John Curry
7,017 Points

Hi, Got that to work, thank you. Now I'm having a different problem.

$ git push -u origin master
error: The requested URL returned error: 403 Forbidden while accessing https://github.com/JohnsCurry/treebook.git/info/refs

fatal: HTTP request failed
johnscurry@treebook:~/461443

I'm following along with this video: http://teamtreehouse.com/library/programming/build-a-simple-ruby-on-rails-application/getting-started-with-rails/push-to-github

I tried to figure it out myself, but couldn't find any answers. I looked at StackOverflow, and google searched. Do you have any recommendations for other sources, or methods of figuring stuff like this out? I love treehouse, but I don't want to have to depend on you :)

James Barnett
James Barnett
39,199 Points

In the video Jim had already setup his git with an SSH key.

The easy way to clone treebook is to use:

git clone https://github.com/jasonseifer/treebook.git

If you are curious about for more details, this has been previously covered in another thread on this forum.

Hey guys! I'm having the same exact problem as John. Also I didn't really understand James reply regarding cloning treebook with 'git clone', I entered that into my terminal just incase that's what he ment but it still doesn't help. Would appreciate if you guys could assist us regarding this as soon as possible. ps. you guys are doing great :)

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

+John Double check that your GitHub username and password are correct -- that's usually the cause of that error.

+Moin What part are you having trouble with?

We are definitely working on updates to the Cloud9 videos.

jmt
jmt
13,877 Points

This has thrown me for a loop as well.... When I didn't have the "Git" option I setup the Treebook workspace under cloud, but did not select Ruby on Rails. After reading this I figured I had messed up, so I deleted the Treebook workspace with the intention of re-creating it using Ruby on Rails. Now it will not let me create a new workspace for Treebook, it tells me I've already created a workspace with that name and to select a new name. I deleted my Cloud9 account and re-created it, but I still get the same message. Is there a way to fully delete the orginal Treebook workspace so I can start over clean?

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Hey John, there should be an option to fully delete your workspace in your cloud9 account. Click on "My Projects" and then your treebook project. On the right side there should be a button that says "Delete".

jmt
jmt
13,877 Points

Hi Jason, thanks for your reply. I sent a ticket in with cloud9 as well. I learned that for backup reasons they have a restriction deleting a workspace and creating a new one with the same name within a few hours. This turned out to be my issue, I just had to wait a bit. All is well now!

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Thanks for the update, John! Glad it worked out :)