-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pry not starting after installing pry-rails #97
Comments
I'm having a similar issue, Rails 5.1.2 ruby 2.3.4, fresh installs today. I can't even do
Maybe it's something with Rails 5? I'm more familiar with Rails 4, which I've had no |
Same problem here with rails 5. Even can't UPD: it just works now. May be new rails works well. |
Same issue with Rails |
Find it works if you $ DISABLE_SPRING=1 bin/rails c
Loading development environment (Rails 5.1.4)
[1] pry(main)> 🙄 |
This comment won't help.. but check out some of the alternative web frameworks so Ruby on Rails doesn't have such an iron grip influence on the available options in the professional Ruby space. I feel sorry for people caught up in DHH-ism and I think a backlash is inevitable, because there is never one 'One Right Way' and having an opinionated framework is fine, if other opinions can breath and excel as well. My two cents. |
Unfortunately, the |
I don't see any issues.
|
@PrimeTimeTran use Chrome debugger for AJAX, pry Rails. If you need pry for AJAX, then you can try |
EDIT: Turns out I was using an older version of this gem, 0.3.6. Upgrading to 0.3.9 fixed the issue for me (though the warnings on the bottom are still there). It looks like this project hasn't been updated in some time, but I ran into this (or a similar) issue after going to Rails 6, and was seemingly able to fix it by updating my class Application < Rails::Application
config.console = Pry
# the rest of my config here...
end Or, more accurately, I updated my require 'pry'
Rails.application.configure do
config.console = Pry
# ...
end I am getting some warnings when fire up the console:
So it's possible that I'll still run into issues down the line, but this at least allows me use the |
I suspect some of the problems reported here have to do with |
I'm trying to include
pry-rails
in a Rails 5 app using Ruby 2.4.1, but it doesn't seem to replace irb in the console.I've included
pry-rails
in my gemfile and runbundle install
, but when I start the console it still uses irb. I tried moving it out of the development group, but that made no change. Am I missing a step here? Thanks in advance.Gemfile:
Gemfile.lock shows pry and pry-rails:
The text was updated successfully, but these errors were encountered: