search for: create_foo

Displaying 4 results from an estimated 4 matches for "create_foo".

2011 Jun 09
1
Rcpp and Object Factories
...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 library(Rcpp) ff <- Module("Foo_Factory") foo <- ff$create_foo() foo$do_something() It appears after scouring some message boards that it is doable via boost python, but i'm not literate enough yet about how this works to know if...
2007 Aug 17
0
map.with_options :path_prefix => ''
...routes.rb has something like... map.with_options :controller => ''foos'', :path_prefix => '':owner_type/:owner_id'' do |foos| foos.new_foo ''/foos/new'', :action => ''new'' foos.create_foo ''/foos'', :action => ''create'', :conditions => {:method => :post} end And in the foos_controller_spec.rb file is something like... describe FoosController, ''on a GET t...
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