Why i am getting error of wrong no of arguments in link_to rails 4.2?

277 views Asked by At

I am working on app of Rails 4.2 and facing an unusual issue as below.

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

on link_to with syntax

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

Please find attached screenshot for reference. This seems very much strange to me as I am not able to find any issue with code.

enter image description here

Routes

enter image description here

FULL TRACE

enter image description here enter image description here

1

There are 1 answers

1
AndreDurao On

Do you really need bartt-ssl_requirement gem, like 孙悟空 said: try to take it away to check if that's the cause of the problem - It's on the top of the stack trace.

As said on the readme bartt-ssl_requirement is compatible with ruby 1.8.7 and 1.9.x.

Did you recently upgraded your app to rails 4?