online worldwide free classified ads…
Free Classified worldiwide ads…
]]>Is there still no official solution in 2013?
]]>Thanks, that was the solution for my Mac environment too. The good thing is that it doesn’t permanently change the environment, only for the task.
]]>The code was removed from my last post, probably because of the closing bracket. This goes inside of your model:
def time
self[:time] && self[:time].strftime(”%l:%M %p”)
end
Figured out a workaround. This will remove the date from the time field and then return it formatted however you want. I agree, it’s odd that this is even necessary. This approach is also useful to reformat stuff if you’re using to_json and want to avoid Rails default formatting for a particular model field.
class AppointmentTime
]]>Three years between blog entries: must be some kind of record How are things?
No progress on my part, I’m afraid, Patrick. I stopped working with ruby/rails a couple of months after my original post and so the incentive to fix it disappeared…
]]>Yes, unfortunately still relevant in 2011…
Has there been any official progress made on this? I haven’t seen anything on Google / stackoverflow.
Thanks!
]]>still useful in 2011.
Thanks Rebecca. Just what I needed.
]]>