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

:wrapper_tag, :wrapper_class options (and more) with simple_form and Rails 2.3 ? #18

Closed
fro opened this issue Jun 30, 2010 · 2 comments
Closed

Comments

@fro
Copy link

fro commented Jun 30, 2010

Hi (again),

I'm making my first Rails project and I'm using the simple_form gem (version 1.0) with a Rails app (version 2.3.5).

Is there any way to implement the nice options :wrapper_tag, :wrapper_class, :wrapper_error_class ? Or maybe am I missing something? :-D

Thank you for your advices

Fro_oo

@carlosantoniodasilva
Copy link
Member

After running simple_form_install generator you'll get all available configurations. It's possible to change the wrapper_tag, as you can see here:
http://github.com/plataformatec/simple_form/blob/v1.0/generators/simple_form_install/templates/simple_form.rb#L17

You can also add options to wrapper tag specifically for each attribute by passing :wrapper_html => { :foo => 'bar' }.

Other options aren't available.

@fro
Copy link
Author

fro commented Jul 1, 2010

"Other options aren't available.": I'm sad :-)
Thank you anyway

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

No branches or pull requests

2 participants