How to use binding.pry for view files

How to use binding.pry in a view file

When I used binding.pry in a view file, I knew that I only had to write [-binding.pry] under the line I wanted to check the operation, but for some reason I got a syntax error, and that alone was binding. Because .pry could not be done. I have listed it.

How to use

It was very simple, and I was able to do binding.pry by indenting the line below the view file.

View file


            - binding.pry
            =@sending_destinaton.post_code

#Write the indentation on the bottom line as well.

Recommended Posts

How to use binding.pry for view files
How to use binding.pry [53 days left]
[Ruby] How to use slice for beginners
[For those who create portfolios] How to use binding.pry with Docker
How to use Map
How to use rbenv
How to use letter_opener_web
How to use with_option
How to use fields_for
How to use java.util.logging
How to use map
How to use collection_select
How to use Twitter4J
How to use active_hash! !!
How to use MapStruct
How to use hidden_field_tag
How to use TreeSet
[How to use label]
How to use identity
How to use hashes
How to use JUnit 5
How to use Dozer.mapper
How to use Gradle
How to use org.immutables
How to use java.util.stream.Collector
How to use VisualVM
How to use Map
How to use an array for HashMap keys
[Rails] How to use Gem'rails-i18n' for Japanese support
How to use nginx-ingress-controller with Docker for Mac
[For super beginners] How to use autofocus: true
[Java] How to use Map
How to use Chain API
[Java] How to use Map
How to use Priority Queuing
How to use an array for a TreeMap key
[Rails] How to use enum
How to use java Optional
How to use JUnit (beginner)
How to use Ruby return
[Rails] How to use enum
How to use @Builder (Lombok)
[Swift] How to use UserDefaults
How to use java class
How to use Swift UIScrollView
How to use Big Decimal
[Java] How to use Optional ②
[Java] How to use removeAll ()
How to use String [] args
[Java] How to use string.format
How to use Truth (assertion library for Java / Android)
How to use rails join
How to use Java Map
[For those who create portfolios] How to use font-awesome-rails
Ruby: How to use cookies
How to use dependent :: destroy
How to use Eclipse Debug_Shell
How to use Apache POI
[Rails] How to use validation
How to use Java variables
[Rails] How to use authenticate_user!