Displaying 4 results from an estimated 4 matches for "create_foos".
Did you mean:
create_foo
2011 Jun 09
1
Rcpp and Object Factories
Hello,
I'm not exactly sure how to ask this question, but let me give it a shot...
Is it possible (easy) to use Rcpp Modules in conjunction with object
factories? For example
what I am trying to do is something like this:
// c++ classes
class Foo {
public:
void do_something() {};
};
class Foo_Factory {
public:
Foo * create_foo() {
return new Foo();
}
};
## R Code
2007 Aug 17
0
map.with_options :path_prefix => ''
Hello,
I am getting a ''No route matches'' error in rspec with routes that have a
path_prefix composed by map.with_options. Rails recognizes the routes just
fine and the site works, but I can''t get the specs to pass unless I put the
prefix in each individual route. Any help is appreciated.
My foo model has a polymorphic owner which is what I want the path_prefix to
2006 Mar 30
3
simple migration problem
Hi:
I''m running RoR 1.1
I''m going through the Agile book Depot example and I want to generate my
next migration file so i''m typing
./script/generate migration depot
I was sort of expecting to get the file 002_depot.rb .. instead i''m
being informed that there already exists a migration named depot..and no
new file is generated..
should I be using a new
2008 Jul 05
5
Does RSpec work nicely with UUID primary keys?
I have my application happily generating UUID primary keys using the
uuidtools gem.
But the auto-generated specifications created by "script/generate
rspec_scaffold...", etc, assume that one is using a sequential integer
primary key.
For those who have hit this same issue, is it just a matter of rewriting
the auto-generated specifications to take this into account, or does one
have to