Date/time inputs could default to "now" (like Rails does) if the value is nil #121

Closed
justinfrench opened this Issue Nov 18, 2009 · 5 comments

Comments

Projects
None yet
3 participants
Owner

justinfrench commented Nov 18, 2009

No description provided.

  • 1 for this, as it's something I end up doing anyway.
Contributor

grimen commented Nov 24, 2009

I got something that "should" work here, but RSpec says it's not. Please feel free to review what's up with that. 98-100% complete that is.

http://github.com/grimen/formtastic/commit/59d844d5aa708a874feb8c49071c5e5b89bff1ad

Contributor

grimen commented Nov 27, 2009

To clearify: There are 3 failing specs that should not fail, but they do because form.object/@object is set to nil for some reason... =P

Contributor

grimen commented Nov 30, 2009

Got around the issue with date/time not being set to Time.now if no value is set. All specs now pass. Closed by cf3a860.

@zuf zuf pushed a commit to zuf/formtastic that referenced this issue Sep 7, 2012

@grimen @justinfrench grimen + justinfrench Got around the issue with date/time not being set to Time.now if no v…
…alue is set. All specs now pass. Closes #121.
cf3a860

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment