Welcome to the Treehouse Community
Looking to learn something new?
Ruby on Rails localhost:3000 not working?
I'm installing ruby on rails in Windows. I have tried localhost:3000, 127.0.0.1:3000 and 0.0.0.0:3000 in Chrome, but none is working. I ran the following commands "gem install bundle sqlite rails", "rails new testapp", "cd testapp" and "bundle exec rails server". I even restart my machine, but no luck.
The problem is fixed. The real problem was not connecting to localhost:3000, but was that rails wasn't installed correctly. When I ran "rails server" there was an error line that said: C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/tzinfo-1.2.1/lib/tzinfo/data_source.rb: No source of timezone data could be found. Please refer to http://tzinfo.github.io/datasourcenot found for help resolving this error. The link to the solution is: https://github.com/tzinfo/tzinfo/wiki/Resolving-TZInfo%3a%3aDataSourceNotFound-Errors I think this is a common error in Windows machine. After I changed the gemfile, rails is up and running. Thanks everyone for your help and sorry for not finding the real problem.
Artem Prytkov11,932 Points
1) Test if you have actually installed rails via rails -v 2) Make sure you changed directory (in command prompt) to one, where your current project is. 3) Run rails s command