3

I have Ruby on Rails installed and I can run the server fine using rails server, but when I use rails console to start the console it doesn't load properly.

I guess it may an issue with WEBrick but that loads in the server?!

Here is a screenshot showing that the server works as expected: Working rails server

And here is one of the failed console: Failed rails console

I'm running "Windows 7 Ultimate 64bit" with Ruby 2.0.0p598 and Rails 4.2.2.

the Tin Man
  • 158,662
  • 42
  • 215
  • 303
Blease
  • 1,380
  • 4
  • 38
  • 64
  • 4
    first i cannot see any error, just a warning. second this link http://stackoverflow.com/questions/15590450/ruby-2-0-0p0-irb-warning-dl-is-deprecated-please-use-fiddle is similar to your case. i hope this will help you.:) – Athar Aug 02 '15 at 18:29
  • @Athar the issue is that it doesn't load the WEBrick server, but cheers for that link. – Blease Aug 02 '15 at 18:36
  • im sorry can you share in question what happens when you hit `localhost:3000` in browser as that will help us finding the issue. currently what im seeing from the image. it is showing that Webrick is running on rails s with pid 6068. please correct me if im wrong – Athar Aug 02 '15 at 18:42
  • 2
    Running the console doesn't load the web server. It just brings up an irb session with your rails environment loaded. – seph Aug 02 '15 at 18:45

1 Answers1

7

rails console isn't supposed to run the server. It's the console, and you just mess with it, typing stuff inside and getting replies from it via on-screen text messages.

Everything's working fine, you may continue venturing into the mysterious and rewarding world of Ruby on Rails development.

the Tin Man
  • 158,662
  • 42
  • 215
  • 303
EugZol
  • 6,476
  • 22
  • 41