Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

form_for wrong number of arguments in rails 4

I am using form_for tag and Its working in Rails 3.0.4 environment. But when I tried to update my project to Rails 4.It gives following errors

wrong number of arguments (3 for 2). Here is my code

   <%= form_for @email, :url => alerts_path do |f| %>
   <% end %>
like image 450
Zeeshan Mahmood Avatar asked Apr 29 '13 12:04

Zeeshan Mahmood


1 Answers

Try to remove things that may try to change things in views.

In my case the problem was with client_side_validations gem

Hope this helps.

like image 54
Eduardo Fiorezi Avatar answered Oct 02 '22 22:10

Eduardo Fiorezi