Rails中的SyntaxError

时间:2015-11-25 17:26:34

标签: ruby-on-rails ruby ruby-on-rails-4

为什么会出现此错误? Please see the Image

[17:10:04] Using gulpfile ~\Desktop\CPIC.UI.Web\gulpfile.js
[17:10:04] Starting 'run-e2e-tests'...
[17:10:04] log file
[17:10:04] Starting nightwatch...

[CPIC E2e Test] Test Suite
==========================

Running:  CPIC integration

Error retrieving a new session from the selenium server
Error: connect ECONNREFUSED 127.0.0.1:4444
    at Object.exports._errnoException (util.js:874:11)
    at exports._exceptionWithHostPort (util.js:897:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1063:14)


Connection refused! Is selenium server started?

[17:10:06] 'run-e2e-tests' errored after 1.5 s
[17:10:06] Error in plugin 'gulp-nightwatch'
Message:
    nightwatch exited with code 1

1 个答案:

答案 0 :(得分:1)

您在课前缺少逗号

<div class="form-group">
    <%= f.label :category %><br />
    <%= f.select :category_id, Category.all.collect {|x| [x.name, x.id]}, {:include_blank => 'Select One'}, class:'form-control' %><br /> <br />
</div>