rails console doesn't start
I`m in root of my application, and when I type
$ rails console
It looks like something is loading, but nothing happens.
And when I stop
^C I received this trace:
^C/home/jonatas/.rvm/gems/ruby-2.1.2/gems/spring-1.1.3/lib/spring/client/run.rb:54:in `gets': Interrupt from /home/jonatas/.rvm/gems/ruby-2.1.2/gems/spring-1.1.3/lib/spring/client/run.rb:54:in `verify_server_version' from /home/jonatas/.rvm/gems/ruby-2.1.2/gems/spring-1.1.3/lib/spring/client/run.rb:25:in `call' from /home/jonatas/.rvm/gems/ruby-2.1.2/gems/spring-1.1.3/lib/spring/client/command.rb:7:in `call' from /home/jonatas/.rvm/gems/ruby-2.1.2/gems/spring-1.1.3/lib/spring/client/rails.rb:23:in `call' from /home/jonatas/.rvm/gems/ruby-2.1.2/gems/spring-1.1.3/lib/spring/client/command.rb:7:in `call' from /home/jonatas/.rvm/gems/ruby-2.1.2/gems/spring-1.1.3/lib/spring/client.rb:26:in `run' from /home/jonatas/.rvm/gems/ruby-2.1.2/gems/spring-1.1.3/bin/spring:48:in `<top (required)>' from /home/jonatas/.rvm/gems/ruby-2.1.2/gems/spring-1.1.3/lib/spring/binstub.rb:11:in `load' from /home/jonatas/.rvm/gems/ruby-2.1.2/gems/spring-1.1.3/lib/spring/binstub.rb:11:in `<top (required)>' from /home/jonatas/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /home/jonatas/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /home/jonatas/Code/Ruby/jonatasteixeira/bin/spring:16:in `<top (required)>' from bin/rails:3:in `load' from bin/rails:3:in `<main>'
I have no idea whats going on..
I may be answering a bit late for this, but for the sake of the others who are looking for the answer... it's here
Basically, enter this command
The issue , as far as I understand, is with the
spring gem, specifically, it checks the server for versions, which doesn't tally up.
For my case, the problem started when when I add some new gems into the gemfile.
So once you stop spring and type in any other rails command, spring restart, and every thing should work again, at least until the same problem occurs, or the dev patched the issue.
typing 'rails console' doesn't start?, Are you in the root path of your app when you type $ rails console ? Tip: $ rails c is a shortcut for $ rails console. Teams. Q&A for Work. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information.
I've not seen this before, but it looks like maybe spring is messed up in your setup for some reason? Try going into your
Gemfile and look for the line that calls
gem 'spring' and comment that out. Then run
bundle install and try again.
This isn't a proper solution, but if it gets your rails console working again tonight then hopefully it will help you out until a proper solution is discovered.
rails c doesn't start the rails console. · Issue #26658 · rails/rails · GitHub, I am not able to load the rails console. $ ruby -v ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-darwin15] Noticed this while debugging a separate issue while upgrading one of our apps to Rails 4.2.1. Starting a Rails console in a non-development environment by specifying the environment as a command argument doesn't appear to load the correc
In my case, the same trouble is occured on my production environment.
If your environmet is also production, in the first place, you must not install spring on your production environment.
It can be resolved by this command on your production
RAILS_ENV=production bundle install --clean --without development test
Rails Console doesn't work in Learn IDE, If you run into this error in the IDE terminal after running rails console : /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.10/lib/rails/commands/console.rb:29:in Expected behaviour. Rails console should be loaded for rails c. Actual behaviour. Rails console doesnt load on rails c.. System configuration. Rails version: 4.2.0 Ruby version: 2.2.4p230 (2015-12-16 revision 53155) [x86_64-darwin15]
I had the same problem in the production environment. The
spring gem was not in the development group in the Gemfile. After I correct this all worked fine.
Can't get rails console to work?, this is what it looks like on my terminal. i need some help so like i can't delete the user for the first user i created for the ruby generate devise Rails console doesn't use DATABASE_URL environment variable #19256. Closed andrewhamon opened this issue Mar 8, Then I got into rails console and it worked!
Rails Console Shortcuts, Tips, and Tricks, The Windows cls command clears the screen, and the Ruby system method runs that command in a subshell. Reloading the Console. The Rails 1.4 rails console. The console command lets you interact with your Rails application from the command line. On the underside, rails console uses IRB, so if you've ever used it, you'll be right at home. This is useful for testing out quick ideas with code and changing data server-side without touching the website.
Navigating GitLab via Rails console, CAUTION: The Rails console interacts directly with your GitLab instance. In many (Validation failed: Password confirmation doesn't match Password). Aha! See rails/rails#16786 and rails/rails#16783 for background. rafaelfranca closed this Sep 3, 2014 gsamokovarov added a commit to rails/web-console that referenced this issue Sep 3, 2014
The Rails Initialization Process, A Rails application is usually started by running rails console or rails server . If Rails doesn't recognize the command, it hands the reins over to Rake to run a Does anyone know how to make the rails console in Ruby Mine automatcially wrap the resutls? Right now, the results show on a single line. RubyMine doesn't have wrap functionality within editors yet, but it is in progress. Regards, Oleg
Why can't I use Rails console?, If I switch to the predefined user 'rails' and try to run 'rails console' it gives me this permission error: Fun With The Rails Console. I love using the Rails console (irb with your Rails app loaded) And remember that the console doesn’t reload code changes automatically.