【报错记录】SyntaxError in WelcomeController#index打错字

Published on:

错误信息:

SyntaxError in WelcomeController#index
/Users/apple/job-listing/003/app/views/common/navbar.html.erb:25: syntax error, unexpected keyword_end, expecting ')' '.freeze; end ^ /Users/apple/job-listing/003/app/views/common/_navbar.html.erb:34: syntax error, unexpected keywordensure, expecting ')' /Users/apple/job-listing/003/app/views/common/navbar.html.erb:36: syntax error, unexpected keywordend, expecting ')'

位置+问题描述:

招聘网站第6-0章,http://localhost:3000/
首页刷新爆炸

错误排除方法:

根据提示,应该是有打错字的地方,
过了一遍,没有找到错误点,
用text-compare对比,发现漏了符号 )

Comments

comments powered by Disqus