Displaying 4 results from an estimated 4 matches for "modelobject".
Did you mean:
model_object
2006 Jan 05
2
model with type attribute
Dear all,
I have a table with a column named "type" and I ''d like to access the type
field of the correspondant model object but I get a deprecation warning when
I use the following code :
modelObject.type
"type deprecated use class instead"
How can I access such a named field in rails ?
Johan
Johan Duflost
Analyst Programmer
Belgian Biodiversity Platform ( http://www.biodiversity.be)
Belgian Federal Science Policy Office (http://www.belspo.be )
Tel:+32 2 650 5751 Fax: +32 2 650 51...
2006 Jul 10
8
Setup new data in the test database _after_ unit test runs
All,
I want to run automated unit tests as part of my build. I am building
to my test environment. Upon successful completion of all of my unit
tests, I would then like to load some data (using a fixture, I imagine)
into my test database that will act as fresh "system test" data for my
users to play with.
What is the best way to "load the standard system test/user acceptance
2006 Jun 21
3
validation help
I would like to validate a number within a certain range.
To first test that a entry is a valid number i use
validates_numericality_of :my_number, :message =>''sorry, not a number''
to test if the number is within a certain range i use
validates_inclusion of :my_number, :in => min..max, message => ''outside
range!''
If the numericality test fails, I
2007 Dec 09
2
Adding info from summary(lm(...)) to plot
Hi Folks,
Say I have 2 continuous variables X,Y.
I can of course plot (X,Y) with
plot(X,Y,pch="+",col="blue")
say, and add the regression line from lm(Y~X)
by extracting the coefficients 'a' of Intercept
and 'b' of X from Y.lm <- lm(Y~X).
Now, however, I want to have not only a general
explanatory title such as
main="Plot of Y against X"