Rails' client-side-validation form_for error

后端 未结 4 1644
生来不讨喜
生来不讨喜 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-18 04:52

    Rails 4 Support

    Thanks to tagliala & bcardarella, the client_side_validation gem now supports rails 4!

    After adding

    gem 'client_side_validations'
    

    to my Gemfile, it didn't load everything properly.

    This may be temporarily, as Rubygems only links the old version. Instead I had to specify the exact repository & branch, since the owner changed.

    gem 'client_side_validations', github: "DavyJonesLocker/client_side_validations", branch: "4-2-stable"
    

提交回复
热议问题