2013-01-02 84 views
1

我最近試圖添加bootstrap-sass到我的rails應用程序,它似乎打破了我所有的鏈接(鏈接在安裝bootstrap- sass寶石)。我正在使用紅寶石1.8.7。Rails link_to語法錯誤:意外',',期待')'

樣本鏈接我是:

<%=link_to image_tag ("right_arrow.png", :size => '20x20'), project_step_path(@project, @step.number+1) %> 

我得到的錯誤是:

syntax error, unexpected ',', expecting ')' ...o(image_tag ("right_arrow.png", :size => '20x20'), project_s... 

任何人都知道如何解決這一問題?

回答

9

image_tag後有一個額外的空格。

image_tag ("right_arrow.png", :size => '20x20') 

應該

image_tag("right_arrow.png", :size => '20x20') 
+0

哎呦,謝謝!這工作。 – scientiffic

相關問題