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 trialWendel Ferreira
4,258 PointsI can't make my Ruby on Rails work, it keeps getting errors, and never works like your video do. Please, help!
C:\Users\Wendel\Documents\testapp>rails server
bin/rails:4:in require': cannot load such file -- rails/commands (LoadError)
from bin/rails:4:in
<main>'
C:\Users\Wendel\Documents\testapp>bundle exec rails server
DL is deprecated, please use Fiddle
C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.7.2/lib/bundler/rubygems_integration.rb:256:
in block in replace_gem': railties is not part of the bundle. Add it to Gemfile. (Gem::Lo
adError)
from C:/Users/Wendel/Documents/testapp/vendor/bundle/ruby/2.0.0/bin/rails:22:in
<
main>'
Wendel Ferreira
4,258 PointsI did everything exactly the same that happens in "installing a Ruby Development Environment" class. I'm in windows 8. I downloaded the 32 version of the Ruby, and the dev kit for 32bits version as well. Extracted the devkit inside the ruby200 folder. Downloaded the sql3 and rails as the video told me to do. The commands I tried was "bundle exec rails server" and "rails server".
My first issue was trying to install the 64 version, and I tried some times with the 64bitsdevkit as well, but it did not work too. I don't know what to do now. I already tried to take the same exactly steps like 4 times now.
Maciej Czuchnowski
36,441 PointsWindows is bad for Rails development in the long run, even if you manage to install it properly. I'd go for the dedicated virtual machine from Treehouse (they cover this in the videos) and later you can set up your own Ubuntu virtual machine on VMWare Player or something similar, for free. In general, Mac and Linux are best for Rails development.
1 Answer
thomascawthorn
22,986 PointsI think it might be a bit much to get a whole new computer to follow along with these tutorials! But unix based systems are probably the most common in development so keep that in mind for your next upgrade ;)
In the meantime, there are loads of hacks, workarounds and alternatives for developing ruby on windows so don't worry too much. It just might take a little longer to get setup, and a lot of searching of error messages.
Is this the video you've followed? Install Treehouse VM on Windows. A VM is a virtual machine and tricks itself into thinking it's stand-alone computer. This particular VM should be setup specifically for rails development and likeMaciej Czuchnowski mentioned, it's likely to be your best hope for a smooth ride on rails (pun completely intended).
Have you installed the VM?
Maciej Czuchnowski
36,441 PointsMaciej Czuchnowski
36,441 PointsPlease explain everything step by step: what steps did you take? What commands cause these errors? What is your operating system? What is your version of Rails? Are you using the virtual machine?