Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Problem with value_before_type_cast

#5466

There was a recent change: http://github.com/rails/rails/commit/fb0bd8c1092db51888ec4bb72af6c5... in RC2.

to value_before_type_cast to not look first for a the method _before_type_cast and instead seeing if the object responds_to the base method_name.

This breaks things like time fields getting formatted value for the text_field helper etc.

I have a sample demo at git://git@github.com:cwise/time_bug.git. I apologize that I don't have this as a small Gist to demonstrate it with, but I am not sure how to isolate it down to that.

Reported by Chris Wise · August 26th, 2010 @ 12:19 PM

State: invalid
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Chris Wise
    Chris Wise

    Close this ticket please. It would appear that I was using mysql (2.8.1) gem instead of mysql2. Apparently there is some behaviour with the way time fields are rendered because the before_type_cast returns a formatted time. I shouldn't have been expecting that text_field would render a time as a time.

    August 26th, 2010 @ 03:36 PM

  2. Santiago Pastorino
    Santiago Pastorino
    • Importance changed from to Low

    Chris i'm unsure if i understand well your last comment. Why do you want to close it now? i haven't had time yet to take a look at this problem.
    But is an issue or not?, thanks.

    August 26th, 2010 @ 05:13 PM

  3. Rohit Arondekar
    Rohit Arondekar
    • State changed from new to invalid

    December 12th, 2010 @ 02:28 AM