Binding.pry not working in a model.rb file

hi, just curious I can use <% binding.pry %> in my controller and views, but when I try adding it to a model.rb file, it doesn’t like it (and throws an error).

Are you putting ‘binding.pry’ or ‘<% binding.pry %>’ in the model? you shouldn’t need the erb tag in your model.

1 Like

lol, my bad.

I should of used brinding.pry (in the model) and not <% binding.pry %> which works in the views.

1 Like