2017-01-03 66 views
0

我正在研究Rails 4.2的應用程序,並面臨如下的異常問題。爲什麼我在link_to rails 4.2中得到錯誤的參數錯誤號?

**ERROR** 
wrong number of arguments (given 3, expected 0..1) 

上的link_to語法

<%= link_to 'In Progress', letters_path(status_filter: 'In Progress') %> 

請找到參考所附截圖。這對我來說看起來很奇怪,因爲我無法找到任何代碼問題。

enter image description here

路線

enter image description here

FULL TRACE

enter image description here enter image description here

+0

請提供路由定義的字母資源 –

+0

[SimoneCarletti(http://stackoverflow.com/users/123527/simone-carletti)請見附件路線 – Jeet

+0

一些堆棧跟蹤以及 – Nithin

回答

1

您是否真的需要bartt-ssl_requirement gem,就像孫悟空說的那樣:試着拿走它來檢查問題的原因 - 它位於堆棧跟蹤的頂部。

由於在自述bartt-ssl_requirement is compatible with ruby 1.8.7 and 1.9.x.

說你最近升級了應用導軌4?

+0

是的,我認爲鏈接提供的[ dp](http://stackoverflow.com/users/4002659/dp7)將有所幫助 – Jeet