ruby on rails - (undefined local variable or method `byebug' -
i have follwing error:
nameerror (undefined local variable or method `byebug'
code is
def test t = "" byebug end
--
rails_env=development gem list | grep bye
byebug (3.5.1)
then run :
rails_env=development rails s
but shows:
nameerror (undefined local variable or method `byebug'
do have thought why?
thanks!
it seems need to
require 'byebug'
i in same situation , require failed 'cannot load such file' error adding gemfile worked.
ruby-on-rails byebug
No comments:
Post a Comment