search for: clean_celldata

Displaying 2 results from an estimated 2 matches for "clean_celldata".

2009 Jun 06
5
Rake Tasks
...cells << cell.inner_text.strip end end @rows << cells end @rows.shift # Shifting removes the row containing the <th> table header elements. @rows.delete([]) # Remove any empty rows in our array of arrays. @numrows = @rows.length end def clean_celldata @rows[@numrows-1][0] = 120 end # Print a joined list by row to see our results def print_values puts "Number of rows = #{numrows}." for i in 0..@numrows-1 puts @rows[i].join('', '') end end end # In our search we are supplying the website ur...
2009 Jun 07
17
ActiveRecord Classes
...=> :environment do offensive_rushing = Scraper.new(''http://web1.ncaa.org/mfb/natlRank.jsp?year=2008&rpt=IA_teamrush&site=org'', ''table'', ''statstable'', ''//tr'') offensive_rushing.scrape_data offensive_rushing.clean_celldata offensive_rushing.print_values offensive_rushing.update_rushing_offense # the call to the method above end Now if I run the rake file what is going to happen is I''m going to get an error stating: Table ''project_development.scrapers'' doesn''t exist: I believ...