Displaying 4 results from an estimated 4 matches for "an_object".
2009 Jun 24
2
At my wits end ! Controlling passed in negative values from a form
...from a form, which
is saved in a MySQL db as decimal(9,2)
Now problem is I need to ensure people don''t enter a form value like -.
003. In my validations, I have a validates_numericality_of check being
done. Furthermore, in validate method, I have a check using an if
statement such as :
((an_object[n].nil? or an_object[n] < 0) and !an_object[n].blank?)
While testing, Rails validation can catch -0.003. However, it just
does not catch -.003 (without leading zero). In fact, in case of -.
003, the value gets saved as 0; if form value is -.008 let''s say, it
gets saved as .01 in db (ge...
2005 Dec 17
2
Storing an object in the db
I''ve asked this before, but never got a working response. I''d like to
store an object inside a binary field in my db. So I''d have a class
like this
class MyAwesomeClass
def do_something_awesome
...
end
end
then
class MyRecord < ActiveRecord::Base
end
the table my_record would have a binary field, my_object, that would
store an object of
2006 Mar 12
2
Find all the methods on a object in an irb session?
How can I find all the methods on an object from withing irb?
Thanks,
Joe
2005 Apr 21
0
Internal error on Max OS X?
Dear All,
I hope my question has not already appeared in the forum. I'm new to
the MacOS X platform and
I'am experiencing some strange behaviour on the Mac OS X platform, with
R 2.0.1
Here is the error message I get when doing such a basic thing as ls() or
summary(an_object):
2005-04-15 14:59:48.177 R[1147] *** Assertion failure in
-[NSMutableRLEArray objectAtIndex:effectiveRange:],
String.subproj/NSAttributedString.m:1009
2005-04-15 14:59:48.178 R[1147] *** NSTimer discarding exception
'NSInternalInconsistencyException' (reason 'Access invalid attribute...