嗨,我已经安装了 Pry 来进行一些很棒的调试,并且之前可以正常工作,但是当我使用“下一步”进入代码时,我收到以下错误:
SyntaxError: (eval):2: Can't escape from eval with next
正在使用的代码:
def create
binding.pry
build_resource(sign_up_params)
if resource.save
yield resource if block_given?
if resource.active_for_authentication?
set_flash_message :notice, :signed_up if is_flashing_format?
sign_up(resource_name, resource)
respond_with resource, :location => after_sign_up_path_for(resource)
else
set_flash_message :notice, :"signed_up_but_#{resource.inactive_message}" if is_flashing_format?
expire_data_after_sign_in!
respond_with resource, :location => after_inactive_sign_up_path_for(resource)
end
else
clean_up_passwords resource
respond_with resource
end
end
其他人遇到过这个问题吗?