Displaying 3 results from an estimated 3 matches for "the_object".
Did you mean:
other_object
2007 Aug 16
0
created_at Column and strftime
I am trying to format the created_at value of an object for display in
the view.
Just for testing purposes, right now I''m doing -
puts @the_object.created_at.strftime(''%B %e, %G'')
puts @the_object.created_at.to_date.strftime(''%B %e, %G'')
The first line doesn''t output anything, while the second one outputs the
date in the correct format. Why do I have to convert it to a Date object
first? Doesn'...
2011 Sep 13
12
Assertions for asynchronous behaviour
Hi all,
In GOOS[1] they use an assertion called assertEventually which samples the system for a success state until a certain timeout has elapsed. This allows you to synchronise the tests with asynchronous code.
Do we have an equivalent of that in the Ruby / RSpec world already? I know capybara has wait_until { } but that''s fairly rudimentary - the failure message isn''t very
2006 Mar 02
2
Ajax.Autocompleter with an empty field
Hey guys,
I have a field that will have very few autocomplete options. I have
an ajax.autocompleter on it that works great, but I wanted to make it
start autocompleting as soon as the field is blur()ed, so that even
if the field is empty, the list will still appear. Like a combo box
in windows. How can I do this? Setting :min_chars => 0 (or even -1)
didn''t work...
-Josh