Did I seriously leave the debug statements in there?   I just removed 
them on edge.  Oops.

You've run into a bug in Rails.

https://hobo.lighthouseapp.com/projects/8324/tickets/408

I sent them a patch but they seem to be ignoring it.  Feel free to whine 
to the rails maintainers to get them to apply my patch.  :)

cheers,
Bryan


bcavileer wrote:
> I placed the following in my application.dryml.  I commented out the
> require 'ruby-debug' and debugger lines.
> 
> <def tag="input" for="datetime" attrs="order">
>   <% if ! order.nil?
>        order = comma_split(order).*.to_sym
>        attributes.merge!(:order => order)
>        # require 'ruby-debug'
>        # debugger
>      end -%>
>   <%= select_datetime(this || Time.now, attributes.merge(:prefix =>
> param_name_for_this)) %>
> </def>
> 
> I also put in
> 
> <extend tag="input" for="datetime">
>    <old-input merge include-blank="&true" order="month,day,year" />
> </extend>
> 
> 
> now I am getting a form that looks kike
> 
> MM DD YYYY HH MM
> 
> and if I put in
> 
> <extend tag="input" for="datetime">
>    <old-input merge include-blank="&true" order="month,day,year, hour,
> minute, second" />
> </extend>
> 
> I now get a crazy form that looks like
> 
> MM DD YYYY HH MM SS HH MM
> 
> 
> Any help getting to "MM/DD/YYYY HH(12):MM AM/PM" would be much
> appreciated
> 
> 
> On Jun 23, 1:06 pm, bcavileer <[email protected]> wrote:
>> I'm trying to modify the format for the time, date, and datetime
>> inputs.
>>
>> <extend tag="input" for="date">
>>    <old-input merge include-blank="&true" order="month,day,year" />
>> </extend>
>>
>> --  that works
>>
>> <extend tag="input" for="time">
>>    <old-input merge include-blank="&true" order="hour,minute" />
>> </extend>
>>
>> -- that works
>>
>> however...
>>
>> <extend tag="input" for="datetime">
>>    <old-input merge include-blank="&true"
>> order="month,day,year,hour,minute" />
>> </extend>
>>
>> -- this errors
>>
>>>> MissingSourceFile (no such file to load -- ruby-debug):
>>   hobo (0.8.7) taglibs/rapid_forms.dryml:379:in
>> `input__for_active_support__time_with_zone_without_a95447ec0102'
>>
>> What I'm really going for here is an input for a datetime with MM/DD/
>> YYYY HH:MM AM/PM  and HH is 12hr
> > 
> 


--~--~---------~--~----~------------~-------~--~----~
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