ruby - Using pry with Sinatra -


new ruby , sinatra.

i'm trying use pry within sinatra controller (want able take @ params returning me). added 'binding.pry' inside of post request, it's not working. know need require 'pry' should placed in controller file, config.ru or environment file in order work properly? thanks!

it depends on want use pry. if want work everywhere in sinatra project, add gemfile.

group :development, :test    gem 'pry' end 

i recommend limiting environments :development , :test, since doing debugging there.

you can require in top of application so:

require 'pry' 

Comments

Popular posts from this blog

python - Installing PyDev in eclipse is failed -

PHP OOP-based login system -

c# - Nested Internal Class with Readonly Hashtable throws Null ref exception.. on assignment -