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

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -