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

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -