Displaying 4 results from an estimated 4 matches for "simplemodel".
Did you mean:
samplemodel
2006 May 10
0
tableize and model modules
As my database and application grows, I''m starting to run into a large
number of models and naming conflicts. I found out that I can switch
big_complex_named_model.rb to module/simple_model.rb which changes
BigComplexNamedModel to Module::SimpleModel which cleans things up quite
a bit. However, if I run:
''Module::SimpleModel''.tableize
I get ''module/simple_models'' which is not a valid table name.
If it were ''module_simple_model'', or ''module__simple_model'' (to
differentiate...
2005 Sep 27
5
Am I misunderstanding "require_dependency"?
Hi
From what I understand about documentation about require_dependency,
this function will work like require but the file will be reloaded on
every request to the server when in development mode.
I have bootstrapped am minimal RoR project with 0.13.1 Rails. I have
created a minimal Controller and hooked up it''s "index" action at the
site root. I have also created a
2008 Feb 04
1
extracting AIC scores from lmer and other objects
I have a slight conundrum. I'm attempting to write a scrip that will
take a number of objects (lm, glm, and lmer) and return AIC scores
and weights. I've run into 3 problems, and was wondering if anyone
had any pointers.
1) is there any convenient way to extract the name of the objects?
Simply, if I have a vector of objects c(my.lm, my.lmer) and I want to
get a character
2009 Sep 07
11
autoincrement for non-id column
There is a table:
execute (<<-SQL)
CREATE TABLE "tasks" (
"id" serial primary key,
"number" serial,
"version" integer DEFAULT 0 NOT NULL,
"latest_version" boolean DEFAULT ''t'' NOT NULL,
"hidden" boolean DEFAULT ''f'' NOT NULL,
"type" character varying (1) NOT