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

Best approach to parse text field to 1i, 2i, 3i #89

Closed
dgwmfo opened this issue Nov 10, 2014 · 1 comment
Closed

Best approach to parse text field to 1i, 2i, 3i #89

dgwmfo opened this issue Nov 10, 2014 · 1 comment

Comments

@dgwmfo
Copy link

dgwmfo commented Nov 10, 2014

I can get the datepicker to display nicely formatted when I use 'data-provide' => 'datepicker' in my f.text_field form helper. Now I'm wondering what approach you'd suggest to parse the text_field into Rails 1i, 2i, and 3i fields so I can save the date to the database. Is the approach in Railscast #32 still applicable here? Or are there other more robust or effective strategies you could point me to?

Thanks!

@Nerian
Copy link
Owner

Nerian commented Nov 13, 2014

Hi,

Rails should be able to understand the value that comes from the datepicker.

If you wish to change the format that is displayed, you can take a look at http://bootstrap-datepicker.readthedocs.org/en/release/options.html#format

@Nerian Nerian closed this as completed Nov 20, 2014
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

2 participants