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

Allow styling SELECT elements #78

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

francois
Copy link

@francois francois commented Apr 2, 2013

By calling the helper with an :html key, we can style the underlying
select with a class:

<%= f.select :language, nil, html: { class: "span1" } %>

This change is Reviewable

By calling the helper with an `:html` key, we can style the underlying
select with a class:

    <%= f.select :language, nil, html: { class: "span1" } %>
@francois
Copy link
Author

francois commented Apr 2, 2013

Without this patch, passing in a class option to select doesn't style the element at all.

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

Successfully merging this pull request may close these issues.

1 participant