Rails' client-side-validation form_for error

后端 未结 4 1613
生来不讨喜
生来不讨喜 2020-12-18 04:22

I am using client validation rails gem and I got this error. Any idea.....

wrong number of arguments (3 for 2) Extracted source (around line #1):

<         


        
4条回答
  •  攒了一身酷
    2020-12-18 05:09

    If your using Rails 4 then Client Side validation is outdated. You can check here

    http://railscasts.com/episodes/263-client-side-validations?view=comments

    and also if you go to the github page

    https://github.com/bcardarella/client_side_validations

    you can see that it says its no longer maintained.

    Alternatively you can try using the CSV gem from this branch, by replacing the CSV line in your Gemfile by this

    gem 'client_side_validations', github: "bcardarella/client_side_validations", :branch => "4-0-beta"

    Not sure even if this will work though. Since its outdated.

    Or you can check this gem out,

    https://github.com/kalkov/rails4_client_side_validations

    Its just a modified version of Client Side Validations

提交回复
热议问题