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

lev_form_for label method #53

Open
Dantemss opened this issue Apr 9, 2016 · 0 comments
Open

lev_form_for label method #53

Dantemss opened this issue Apr 9, 2016 · 0 comments

Comments

@Dantemss
Copy link
Member

Dantemss commented Apr 9, 2016

For some reason I don't understand, lev_form_for's label method takes one less argument than form_for's:

form_for(:a){|ff| ff.label}
ArgumentError Exception: wrong number of arguments (0 for 1..3)
lev_form_for(:a){|ff| ff.label}
ArgumentError Exception: wrong number of arguments (0 for 1..2)

So it's impossible to pass an options hash to it.

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

1 participant