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 parameters #25

Closed
royzinn opened this issue Oct 28, 2013 · 9 comments
Closed

wrong number of parameters #25

royzinn opened this issue Oct 28, 2013 · 9 comments

Comments

@royzinn
Copy link

royzinn commented Oct 28, 2013

Hi,
I'm trying to use bootstrap_form_for, using the given example (just modified @user to my model and updated all required fields).
For some reason i'm getting an error "wrong number of parameters (4 for 5)" on the first line of the form (bootstrap_form_for(@item....) and I cannot seem to find the reason.
I'm using rails 4 + Bootstrap 3.

Any help would be appreciated,
Thanks,
Roy

@carloslopes
Copy link
Member

hey @royzinn, can you create a gist with your form and paste the link here??

@royzinn
Copy link
Author

royzinn commented Oct 28, 2013

hey @carloslopes here it is: https://gist.github.com/royzinn/7198456

Thanks!

@carloslopes
Copy link
Member

Which version of rails are you using?

@royzinn
Copy link
Author

royzinn commented Oct 28, 2013

rails 4 with BS 3

@potenza
Copy link
Member

potenza commented Oct 29, 2013

@royzinn what version of bootstrap_form are you using? Rails 4 requires version 1.0

@royzinn
Copy link
Author

royzinn commented Oct 29, 2013

oops, looks like I forgot to update to the latest version (currently
running 0.3.2). I will try and report!
Thanks

On Tue, Oct 29, 2013 at 7:27 PM, Stephen Potenza
notifications@github.comwrote:

@royzinn https://github.com/royzinn what version of bootstrap_form are
you using? Rails 4 requires version 1.0


Reply to this email directly or view it on GitHubhttps://github.com//issues/25#issuecomment-27324421
.

@royzinn
Copy link
Author

royzinn commented Oct 29, 2013

yup, that seemed to be the issue. thanks.
BTW - is there a plan to support BS3?
Cheers,
Roy

@carloslopes
Copy link
Member

cool.. I'm very busy at work now so i don't have plans to work on this, i can only help reviewing PRs and issues at this momento 😥

I'll close this issue ok @royzinn? Reopen it if you have other problems.

@lurkermike
Copy link

This error is happening for me with Rails 4.1.0.beta1 + bootstrap_form 2.0.1. I am using Bootstrap 3.

This is a gist of my form: https://gist.github.com/lurkermike/8216402

The error message is: "wrong number of arguments (5 for 4)" at the line which contains the bootstrap_form_for call.

I've tried stripping down the form to a single label and text field but the error persists.

Any help would be appreciated.

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