Displaying 3 results from an estimated 3 matches for "statstable".
Did you mean:
statetable
2009 Jun 07
17
ActiveRecord Classes
...desc "This task will parse data from ncaa.org and upload the data to our
db"
task :scraper => :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...
2009 Jun 06
5
Rake Tasks
...of
element (ex: table), the class name of that element
# and the child element that contains the data we wish to retrieve.
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
================================
If you tested that out, you will see a print out of 120 rows of data..
What I want to do is to utilize the .rb file I created with m...
2006 Aug 04
5
Creating new record from a form? (stringify_keys! error)
Appologies if this has been covered, But it seems the search is busted.
I have a simple model object "Biostat" which I am trying to add a new
record to.
this is the form:
<%= form_remote_tag(
:update=>''statsTable'',
:url=>{:action=>''new''},
:html=> {:action=>''new'', :method=>''post''},
:complete => "new Effect.BlindUp(''admin-stats-panel'', {duration:
.25})")%>
Date: <%= text_field_ta...