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.

General Discussion

Installing Rails

I am having trouble launching the rails server. I installed rails, created the treebook application, switched to the treebook directory and launched rails with the command "rails s", but it wont launch. I might have deleted or moved around some files. Since I dont know what I did...I uninstalled rails and reinstalled but I still cannot get rails to start. Please help me diagnose the problem.

Also, does it matter where I install Rails to? I have rails installed on c:/sites by default and I create my treebook application under c:/users.

7 Answers

Joseph Hall
Joseph Hall
10,865 Points

It does not matter where you install rails ( at leat for me) To run the rails server, type in the tree book directory terminal line rails s or rails server. Then navigate your web browser to localhost:3000 and that should get you there. If you need any help uninstalling rails, let me know.

When you create a migration ( like you will in the next video, go to localhost:3000/statuses to see the statuses and to post a new one. Hope this helps, Joseph

James Barnett
James Barnett
39,199 Points

It sounds like a permissions issue. I'd suggest you uninstall / reinstall, this time accepting the defaults for where rails wants to install to.

Thanks for helping guys. I did uninstall rails and reinstalled ( I uninstalled by clicking on the uninstall file inside the Rails folder, then deleting the folder) many times, but this doesn't work. I think I need to delete some more files somewhere?

Joseph- I typed rails server on the treebook directory and the prompt spits out some language that as a novice I do not understand.

If you are on a 64 bit windows system, things get a little tricky

Look for this error message 193: %1 is not a valid win32 application.

If you have that message, google it for a fix :)

I did not see that error message when I type in "rails s". What I do see is "Could not find a Javascript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. Who is sstephenson?

James Barnett
James Barnett
39,199 Points

@Robert - Try installing Node from http://nodejs.org/ and see if that fixes it.

source: http://teamtreehouse.com/forum/ruby-status-issue

Thanks James. It worked!