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

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

Hartls Tutorial Section 3.4 rails generate controller error

From Dev

MySQL 'AND' gives me error

From Dev

It gives me an error at GPS

From Dev

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

From Dev

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

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

Laravel controller gives not found error

From Dev

JMeter does not load and gives 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

Sorting array gives me error

From Dev

Animate UITableViewCell gives me 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

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

From Dev

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

From Dev

Rails load Error

From Dev

Post from View to Controller works but gives an error

From Dev

Accessing session data in another controller gives error

From Dev

Rails 4 and Rspec - generate controller test

From Dev

Rails Generate Controller suddenly decided to stop working

From Dev

rails generate ckeditor:install could not load generator

From Dev

Pip freeze gives me this error related with git

Related Related

  1. 1

    Rails Generate Controller gives me load error

  2. 2

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

  3. 3

    Hartls Tutorial Section 3.4 rails generate controller error

  4. 4

    MySQL 'AND' gives me error

  5. 5

    It gives me an error at GPS

  6. 6

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

  7. 7

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

  8. 8

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

  9. 9

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

  10. 10

    Laravel controller gives not found error

  11. 11

    JMeter does not load and gives error

  12. 12

    Animate UITableViewCell gives me error

  13. 13

    Sorting array gives me error

  14. 14

    php header gives me the error

  15. 15

    .getDownloadUrl() gives me error - Android

  16. 16

    using "this" in a fragment gives me an error

  17. 17

    Sorting array gives me error

  18. 18

    Animate UITableViewCell gives me error

  19. 19

    Firefox gives me dbus error

  20. 20

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

  21. 21

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

  22. 22

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

  23. 23

    Rails load Error

  24. 24

    Post from View to Controller works but gives an error

  25. 25

    Accessing session data in another controller gives error

  26. 26

    Rails 4 and Rspec - generate controller test

  27. 27

    Rails Generate Controller suddenly decided to stop working

  28. 28

    rails generate ckeditor:install could not load generator

  29. 29

    Pip freeze gives me this error related with git

HotTag

Archive