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

Eric Will
Eric Will
6,318 Points

Problem with: Build a Simple Ruby on Rails Application (RVM)

I've spent the last few hours trying to figure this out. I've even gone over to developwithpassion.com and followed the install rvm with cygwin for windows tutorial. I just can't seem to get this working. I'm running Windows 8 and I've installed rails and everything checked out on the last tutorial. However, I can't generate the treebook application as explained below because none of my command prompts recognize rvm as a command. Has anyone else had this problem and figured it out?

http://teamtreehouse.com/library/build-a-simple-ruby-on-rails-application/getting-started-with-rails/generate-a-rails-application-2

When I type rvm 1.9.3 into the console I get the following error: -bash: rvm: command not found

I even tried to install Pik and I still can't resolve this issue.

7 Answers

Eric Will
Eric Will
6,318 Points

Nevermind. It seems my issue is that I'm not checking the teacher's notes. I was going to the wrong url. I should be fine now.

Charles Massry
Charles Massry
12,253 Points

I have that same issue but what i did was install a vagrant box and ran it from there

James Barnett
James Barnett
39,199 Points

If you check the teacher notes below the video you will see this note

It is also not necessary to type the rvm use command on Windows.

James Barnett
James Barnett
39,199 Points

Eric Will -

> I even tried to install Pik and I still can't resolve this issue.

It's worth noting that while pik & rvm do similar things, they are otherwise unrelated and each uses their own unique commands. If you want to use Pik you'll need to read up on those commands.

Eric Will
Eric Will
6,318 Points

thanks guys

Ok. I've gone though the steps. Things seems to check out in my console. However, when I go to http://0.0.0.0:3000 I get a page not found error.

After running rails server I get all the output that it shows in the demo video so I'm not sure what the issue is.

Eric Will
Eric Will
6,318 Points

Running into a problem on the last step. I'm getting this error

ExecJS::RuntimeError in Statuses#index

Showing C:/Sites/treebook/app/views/layouts/application.html.erb where line #6 raised:

(in C:/Sites/treebook/app/assets/javascripts/statuses.js.coffee) Extracted source (around line #6):

3: <head> 4: <title>Treebook</title> 5: <%= stylesheet_link_tag "application", :media => "all" %> 6: <%= javascript_include_tag "application" %> 7: <%= csrf_meta_tags %> 8: </head> 9: <body> Rails.root: C:/Sites/treebook

James Barnett
James Barnett
39,199 Points

I searched the forum and found that you need to install node.js and make sure it's added to your path.

https://teamtreehouse.com/forum/ruby-status-issue

Eric Will
Eric Will
6,318 Points

Thanks James,

I finally got it.

Eric Will
Eric Will
6,318 Points

James Barnett

Hey James. Do you have any idea of what could be the problem above? I've tried to trouble-shoot this with no success. I was cruising along until this rails setup section.