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

Can't specify custom values for default_blank option #94

Closed
isparling opened this issue Jun 5, 2012 · 4 comments
Closed

Can't specify custom values for default_blank option #94

isparling opened this issue Jun 5, 2012 · 4 comments

Comments

@isparling
Copy link

Title says it all - can't specify specific (i18n'able) text to be the default option when using either form.state_select or state_options_for_select.

@jim
Copy link
Collaborator

jim commented Jun 6, 2012

This sounds like it's probably a carmen-rails issue.

The view helpers don't currently support a prompt option, but I'll open a ticket over there for it.

@isparling
Copy link
Author

Awesome - didn't realize there was a carmen-rails repo. I'll take a look there and see if (now that I have some cycles) I can throw together a PR.

@rdsoze
Copy link

rdsoze commented Jun 19, 2012

@jim @isparling This worked for me ..

<%= f.subregion_select(:state, country, {:include_blank => "Select if applicable"}) %>
<%= f.country_select :country, :priority => %w(US), :include_blank => "Select if applicable" %>

@jim
Copy link
Collaborator

jim commented Oct 4, 2012

Closing this as the issue has been addressed in the carmen-rails repo.

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

3 participants