This project is archived and is in readonly mode.
Add ignore_date option to date helpers so Rails doesn't hidden field tags
-
Emilio Tagua
- Title changed from Add ignore_date option to date helpers so Rails doesn't hidden field tags to Add ignore_date option to date helpers so Rails doesn't render hidden field tags
- Tag set to actionpack, patch
-
Repository
- State changed from new to resolved
(from [570f5aad663fa3113772cf56306862829babc739]) Allow date helpers to ignore date hidden field tags. [#503 state:resolved]
Signed-off-by: Pratik Naik
-
Jeremy Kemper
- Milestone cleared.
-
Aditya Sanghi
- Title changed from Add ignore_date option to date helpers so Rails doesn't render hidden field tags to Add ignore_date option to date helpers so Rails doesn't hidden field tags
- Assigned user set to Emilio Tagua
- Tag cleared.
Sorry to open up a topic more than 2 years old but it's caused (https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets....
Just wondering the use case stated here could not have been handled by datetime_select?
Using time_select with :ignore_date => true causes an errors if the date_select on the same field has not been provided. Moreover, if you enter the time as 01 hours, 02 minutes and 03 seconds, Rails wouldn't even know that its a problem and consider it Year 1, Month 2, Day 3 and NO error would be popped.
Also the documentation does not state anywhere that if you do indeed use :ignore_date => true, you MUST also remember to use date_select on the same field. After much digging, this is the only place this requirement is stated.
I would be of the opinion to revert this functionality, please do share your thoughts.