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

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!