Rails Generate Controller gives me load error

Devbot10

I try to generate a controller but it gives me this error. I can't find where in my files what caused this error so help would be much appreciated. I am running Ruby '2.0.0' and rails '4.2.0.beta2' if that helps at all. PLEASE help! Thanks

I don't undestand WHY this post is getting marked as a duplicate. My question has nothing to do with that other question. Plus, I am asking what to do to fix it, and as far as I read, I didn't even see a fix to that error. PLEASE HELP!

c:\Users\NAME\workspace\sample_app>rails generate controller StaticPages home help

DL is deprecated, please use Fiddle
C:/Ruby200/lib/ruby/gems/2.0.0/gems/web-console-2.0.0.beta3/lib/web_console/slave.rb:1:in
`require': cannot load such file -- pty (LoadError)
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/web-console-2.0.0.beta3/lib/web_console/s
lave.rb:1:in `<top (required)>'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/web-console-2.0.0.beta3/lib/web_console.r
b:13:in `require'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/web-console-2.0.0.beta3/lib/web_console.r
b:13:in `<top (required)>'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/web-console-2.0.0.beta3/lib/web-console.r
b:1:in `require'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/web-console-2.0.0.beta3/lib/web-console.r
b:1:in `<top (required)>'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.7.3/lib/bundler/runtime.rb:76:i
n `require'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.7.3/lib/bundler.rb:133:in `requ
ire'
from c:/Users/Devin Miller/workspace/sample_app/config/application.rb:7:in `<top (
required)>'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.2.0.beta2/lib/rails/commands/c
ommands_tasks.rb:141:in `require'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.2.0.beta2/lib/rails/commands/c
ommands_tasks.rb:141:in `require_application_and_environment!'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.2.0.beta2/lib/rails/commands/c
ommands_tasks.rb:128:in `generate_or_destroy'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.2.0.beta2/lib/rails/commands/c
ommands_tasks.rb:50:in `generate'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.2.0.beta2/lib/rails/commands/c
ommands_tasks.rb:39:in `run_command!'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.2.0.beta2/lib/rails/commands.r
b:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
spickermann

The problems is the Rails 4.2.0.beta depends on the pty gem and is unable to find it:

`require': cannot load such file -- pty

The reason is that the pty gem is not available on Windows. Hopefully that gets fixed before Rails 4.2 is released. At the moment you can fix this problem by removing the web-console gem from your Gemfile:

# Gemfile
# gem 'web-console'

Run bundle install after removing that gem.


To fix the problem that no source of timezone data could be found (TZinfo::DataSourceNotFound) please add the following line to your Gemfile:

gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]

And then try again:

bundle install
bundle exec rails generate controller StaticPages home help

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Pip freeze gives me this error related with git

From Dev

Rails : Controller without action and without view gives error but Controller without action and with view doesnt

From Dev

Rails: Faye works for me, but still gives some JS error in the console for some unknown reason, Should I be worried?

From Dev

Hartls Tutorial Section 3.4 rails generate controller error

From Dev

Rspec & Rails: how to test controller for 404 error? It gives "no route matches" error instead of 404

From Dev

MVC controller gives me a 403 forbidden error with the default route when it's called DocumentationController

From Dev

Rails 4 and Rspec - generate controller test

From Dev

Rails Generate Controller gives me load error

From Dev

I am trying to load my servlet in the browser and it gives me this error

From Dev

Laravel controller gives not found error

From Dev

Animate UITableViewCell gives me error

From Dev

Sorting array gives me error

From Dev

php header gives me the error

From Dev

.getDownloadUrl() gives me error - Android

From Dev

using "this" in a fragment gives me an error

From Dev

Rails Generate Controller suddenly decided to stop working

From Dev

Rspec & Rails: how to test controller for 404 error? It gives "no route matches" error instead of 404

From Dev

MySQL 'AND' gives me error

From Dev

rails generate ckeditor:install could not load generator

From Dev

Post from View to Controller works but gives an error

From Dev

It gives me an error at GPS

From Dev

Rails load Error

From Dev

Animate UITableViewCell gives me error

From Dev

Sorting array gives me error

From Dev

rbenv gives me to long error report in shell when something happens with my rails app

From Dev

JMeter does not load and gives error

From Dev

Firefox gives me dbus error

From Dev

added `acts_as_list` to gemfile, rails gives error :`bundler: failed to load command: rails` when running rails s

From Dev

Accessing session data in another controller gives error

Related Related

  1. 1

    Pip freeze gives me this error related with git

  2. 2

    Rails : Controller without action and without view gives error but Controller without action and with view doesnt

  3. 3

    Rails: Faye works for me, but still gives some JS error in the console for some unknown reason, Should I be worried?

  4. 4

    Hartls Tutorial Section 3.4 rails generate controller error

  5. 5

    Rspec & Rails: how to test controller for 404 error? It gives "no route matches" error instead of 404

  6. 6

    MVC controller gives me a 403 forbidden error with the default route when it's called DocumentationController

  7. 7

    Rails 4 and Rspec - generate controller test

  8. 8

    Rails Generate Controller gives me load error

  9. 9

    I am trying to load my servlet in the browser and it gives me this error

  10. 10

    Laravel controller gives not found error

  11. 11

    Animate UITableViewCell gives me error

  12. 12

    Sorting array gives me error

  13. 13

    php header gives me the error

  14. 14

    .getDownloadUrl() gives me error - Android

  15. 15

    using "this" in a fragment gives me an error

  16. 16

    Rails Generate Controller suddenly decided to stop working

  17. 17

    Rspec & Rails: how to test controller for 404 error? It gives "no route matches" error instead of 404

  18. 18

    MySQL 'AND' gives me error

  19. 19

    rails generate ckeditor:install could not load generator

  20. 20

    Post from View to Controller works but gives an error

  21. 21

    It gives me an error at GPS

  22. 22

    Rails load Error

  23. 23

    Animate UITableViewCell gives me error

  24. 24

    Sorting array gives me error

  25. 25

    rbenv gives me to long error report in shell when something happens with my rails app

  26. 26

    JMeter does not load and gives error

  27. 27

    Firefox gives me dbus error

  28. 28

    added `acts_as_list` to gemfile, rails gives error :`bundler: failed to load command: rails` when running rails s

  29. 29

    Accessing session data in another controller gives error

HotTag

Archive