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.RC1, client_side_validations 3.2.5 and simple_form 3.0.0.beta1 #535

Closed
BjoernKW opened this issue May 6, 2013 · 7 comments

Comments

@BjoernKW
Copy link

BjoernKW commented May 6, 2013

The following simple form:

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

results in the following error:

wrong number of arguments (3 for 2) in app/views/public/index.html.erb, line 8 with line 8 in that file being

<%= simple_form_for(@service) do |f| %>

Root cause is:

(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

@bcardarella
Copy link
Contributor

@ashes999
Copy link

ashes999 commented Feb 8, 2015

I ran into this problem today.

It seems both the branch mentioned in @bcardarella 's comment, and the latest and greatest master branch, both have the same error.

Please re-open this issue.

How did you get past this @BjoernKW ?

@tagliala
Copy link
Contributor

tagliala commented Feb 8, 2015

@ashes999 please do not mention @bcardarella I'm the maintainer now.

Please open a new request following our contributing guidelines: https://github.com/DavyJonesLocker/client_side_validations/blob/master/CONTRIBUTING.md#submitting-a-new-issue

I can't confirm this bug: https://travis-ci.org/DavyJonesLocker/client_side_validations-simple_form

@tagliala
Copy link
Contributor

tagliala commented Feb 8, 2015

also, if this issue is related to the simple form plugin, use this repository: https://github.com/DavyJonesLocker/client_side_validations-simple_form

@ashes999
Copy link

ashes999 commented Feb 8, 2015

@tagliala okay, thanks. I have confirmed this bug. I will re-open it on the new repository. FYI, this issue still shows up quite high in Google, which is why I commented here.

@lessless
Copy link

I assume this is still an issue?

@tagliala
Copy link
Contributor

#603

locking here 🔒

@DavyJonesLocker DavyJonesLocker locked and limited conversation to collaborators Apr 30, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants