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.
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