I am a beginner Rails developer and I kept encountering this problem when I tried to do "rails server" on the command prompt, I keep getting an error:
"in 'require': cannot load such file -- nokogiri/nokogiri (LoadError)"
I searched online and apparently nokogiri is currently not supported for Ruby 2.2.2 (the version I am currently using).
I am currently working in Ruby 2.2.2, Rails 4.2.3, and gem v. 2.4.8 on a Windows 8.1 PC.
Is there anything I can do to circumvent this problem? Right now, I'm thinking the easiest way would just be to downgrade to Ruby 2.1.6 and go from there. Would anyone be willing to tell me just how to do that? I used RubyInstaller but I don't know if installing Ruby 2.1.6 on top of Ruby 2.2.2 would mess anything up in my system. Is there a way to automatically downgrade anything?
Thanks in advance and if there's another easier way other than downgrading please let me know!
P.S. I tried downgrading the gem version and then I realized that it doesn't actually change the Ruby version.