Pry is quite amazing in my R3 app. But any chance I can use
<% binding.pry %>
in a view or a partial like I did previously with
<% debugger %>
This doesn't seem to work. Thanks.
It's always worked for me... you might need to require it.
<% require 'pry'; binding.pry %>
<% binding.pry %>
works well.
It doesn't work only if you didn't install pry-rails gem in your rails app.
Please post the error that you are facing if use <% binding.pry %>
such that I can elaborate it more.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With