Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong number of arguments (3 for 2) with Rails 4.0.0, client_side_validations 3.2.5, and simple_form 3.1.0 #41

Closed
ashes999 opened this issue Feb 8, 2015 · 11 comments

Comments

@ashes999
Copy link

ashes999 commented Feb 8, 2015

As mentioned on this client_side_validations issue, using this combination of gems results in an error about arguments:

wrong number of arguments (3 for 2) in app/views/foo/bar.html.erb

The original (partial) stack reported was:

(gem) actionpack-4.0.0.rc1/lib/action_view/helpers/form_helper.rb, line 426
(gem) client_side_validations-3.2.5/lib/client_side_validations/action_view/form_helper.rb, line 25

I ran into a similar error yesterday. I can't provide a new stack, since I switched to using a different plugin.

@tagliala
Copy link
Contributor

tagliala commented Feb 8, 2015

@tagliala
Copy link
Contributor

tagliala commented Feb 8, 2015

@ashes999 sorry... you should make sure you are using the last versions from github.

The released gems don't work with Rails >= 4.0

gem 'client_side_validations', github: 'DavyJonesLocker/client_side_validations'
gem 'client_side_validations-simple_form', github: 'DavyJonesLocker/client_side_validations-simple_form'

@ashes999
Copy link
Author

ashes999 commented Feb 8, 2015

@tagliala As I mentioned in the linked issue, I tried the GitHub version of the gem -- both the main branch and the "rails 4.0 quick fix" brach. Neither worked.

Versions:

  • Rails 4.2.0
  • Client-side Validation 3.2.5
  • client_side_validations-simple_form 2.1.0

I think these are the versions. I don't use this any more, so I don't have any records of my configuration.

Form code from the original issue:

<%= simple_form_for(@service) do |f| %>
<%= f.input :name %>
<% end %>

I don't have resulting HTML since the form doesn't render.

@tagliala
Copy link
Contributor

tagliala commented Feb 8, 2015

Client-side Validation 3.2.5
client_side_validations-simple_form 2.1.0

Those versions does not support rails 4.2.0

You must use versions at master branch (4.2.0 and 3.1.0)

Gemfile:

gem 'client_side_validations', github: 'DavyJonesLocker/client_side_validations'
gem 'client_side_validations-simple_form', github: 'DavyJonesLocker/client_side_validations-simple_form'

@ashes999
Copy link
Author

ashes999 commented Feb 8, 2015

Derp...

Like I said, I'm not trying to use this any more, so I don't know exactly what versions I tried.

For details, please see the original issue and ask the original author. I copy/pasted most of his details here, including the stack he provided.

@tagliala
Copy link
Contributor

tagliala commented Feb 9, 2015

@ashes999 sorry, didn't get it

@tagliala
Copy link
Contributor

tagliala commented Feb 9, 2015

closing here

@tagliala tagliala closed this as completed Feb 9, 2015
@vijaychouhan-rails
Copy link

tagliala thanks

@joaorsalmeida
Copy link

Any reason to keep the master branch on Rails 4?

@tagliala
Copy link
Contributor

@joaorsalmeida please do not hijack threads.

Reason is: there is no CSV gem released for rails 5

@joaorsalmeida
Copy link

@tagliala I'm really sorry about the hijack. I've got lost here between different CSV tabs in my browser :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants