-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Config option default_form_class does not work as expected #1217
Comments
Please use the mailing list or StackOverflow for questions/help, where a wider community will be able to help you. We reserve the issues tracker for issues only. |
@georgeguimaraes I was trying to be polite and clear. This is a bug and you should reopen the issue. |
Do you use Can you please provide a sample application that reproduces the error? |
Thanks for reopening! I've set up a minimal fresh rails-4 application here. So I see two possible outcomes. Either:
In any case I think a line or two in the README about this would really help. |
Hey guys, anyone got a chance to look at this? |
@georgeguimaraes Hey, got any chance to look at this? |
Sorry, we didn't have time to look at it yet. On Fri, Mar 20, 2015, 06:59 Uroš Jurglič [email protected] wrote:
|
👍 I had the same problem that @jurglic reported, because of that I kept the |
@georgeguimaraes, @rafaelfranca If you can give me some input on what would be acceptable correct behaviour, I'd be happy to prepare a PR for it. |
I have SimpleForm 3.0.2 configured with Sorry for piggy-backing on your open issue, @jurglic, but I believe our problems are closely related. |
I have the same problem @jurglic reported. We want the form_class to be added both when To get the prior behavior, we are forced to have this confusing configuration:
I say confusing, because this is not how I would expect these two config options to work if |
Ping @rmm5t |
Sorry, I overlooked this. The |
Sorry. This was the decision we made at the time. The problem before was that there were no way to get rid of the underlying
Sure there is. You just have to be explicit in your In my opinion, if you're setting |
I don't know if it's an issue yet since it have a long time so I'm closing it. Feel free to reopen if necessary. |
This is still an issue, and it's just bad default value lib/simple_form.rb
it should be default_form_class = :simple_form and form_class = nil |
In my app, I've been using
so I tried adding classes to the default class
this is not clean way but works |
Since
|
I'm upgrading an application to Rails 4, and during this upgrade the SimpleForm gem is also upgraded from 2.1 to 3.1.
This application uses custom class for forms built with SimpleForm. Its initializer for SF looks like this:
Running the app like that produces depraction message suggestion to use
default_form_class
instead.But using
default_form_class
in the initializer doesn't get the same result: no form gets configured 'my_form_class', but they get 'simple_form'. Looks like this setting is not working at all, or am I missing someting?The text was updated successfully, but these errors were encountered: