Displaying 2 results from an estimated 2 matches for "childsearch".
2009 Jun 06
5
Rake Tasks
...ticle is located at
http://www.iterasi.net/openviewer.aspx?sqrlitid=wd5wiad-hkgk93aw8zidbw_
#
require ''hpricot''
require ''open-uri''
# This class is used to parse and collect data out of an html element
class Scraper
attr_accessor :url, :element_type, :clsname, :childsearch, :doc,
:numrows
# Define what the url is, what element type and class name we want to
parse and open the url.
def initialize(url, element_type, clsname, childsearch)
@url = url
@element_type = element_type
@clsname = clsname
@childsearch = childsearch
@doc = Hpricot(open(ur...
2009 Jun 07
17
ActiveRecord Classes
I''m having a little trouble with understanding how to work out the
schematic for some of my classes using ActiveRecord when a file is in my
lib directory:
Brief example:
Here''s the outline of the files in use:
....app
........controllers
............application_controller.rb
............rushing_offenses_controller.rb
........models
............rushing_offense.rb
....lib