search for: chrisroo

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

Did you mean: chrisroos
2006 Feb 09
2
Finding related items (like latent semantic indexing)
I''ve been trying to use Classifier::LSI to provide a means of finding ''related items'', where each item is a one line description of a product. Although on small samples the Classifier works great, it completely baulks on my current dataset of 3000 items. I''ve started to look at ferret this morning, following a post on the ruby mailing list. I''d
2006 Feb 14
8
Assigning has_many child in parent creation question
If I have... class Parent has_many :children end class Child belongs_to :parent end ...then... * Assigning a _new_ child during parent''s creation saves the child record with the parent''s id. child = Child.new Parent.create(:children => [child]) # Results in child being associated with parent * Assigning an existing child after a parent''s creation
2005 Dec 14
0
assert_generates and catch-all routes
I have a catch all route. map.connect ''people/*args'', :controller => ''people'', :action => ''default_action'' I can test this one way, with assert_recognizes. expected_options = { :controller => ''people'', :action => ''default_action'', :args => [''made_up''] } assert_recognizes
2005 Dec 14
0
Another routing question
I have a route similar to map.connect ''images/:action/:image'', :controller => ''images'', :requirements => { :image => /^.*\.gif$/ } The :image should always be a number appended with .gif (I realise the regex doesn''t reflect this currently). I''d like to extract the numeric part of the image filename to be used as :id. I can do