I pushed a fix to github.  Please check it out.

Bryan


On Tue, Nov 20, 2012 at 2:23 PM, Bryan Larsen <[email protected]> wrote:
> It appears that our attributes_with_hobo_type_conversion= monkey patch
> is no longer being called on create.
>
> I could fix that, but it seems like a better idea just to get rid of
> the monkey patch completely.
>
> To do so, I'll switch from using the `select_datetime` helper to the
> `datetime_select` helper.   This may cause problems for some people,
> because the parameter name will change from something like
> foo[bar][year]  to something like foo[bar(1i)]
>
> This would be a breaking change very late in our development cycle,
> but I think it's best to do it now before we hit the 2.0 mark.
>
> thoughts?
> Bryan
>
>
> On Mon, Nov 19, 2012 at 5:25 PM, tonym <[email protected]> wrote:
>> Not sure if this is a bug in pre5, but since I upgraded I'm getting this on
>> all my time fields, on 'create's only.
>> Date/Time fields are working fine, and editing time fields works fine too.
>> But if I create a new record from any form with a time field in it, the
>> database stores (e.g.):
>> !ruby/hash:ActiveSupport::HashWithIndifferentAccess year: '2012' month: '11'
>> day: '19' hour: '22' minute: '03'
>> in the time fields.
>>
>> Some of these forms are very simple, no validation.
>> e.g.
>>
>>   fields do
>>     name :string
>>     event_date :date
>>     start_time :time
>>     end_time :time
>>     timestamps
>>   end
>>
>> with standard hobo permissions and nothing else in the model.
>>
>> On hobo 2.0.0 pre5  rails 3.2.8
>> Any thoughts?
>>
>> Cheers, Anthony.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Hobo Users" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/hobousers/-/i7UbUg7oJK4J.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/hobousers?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to