Here is my code:

http://gist.github.com/180875

Please note that I've outlined the issue in the link but will add a bit
more information here in terms of processing:

The method is a universal method for approx. 37 models.  This means that
37 models will use this method to create and update data that is being
parsed from ncaa.org.

There are 37 constants which contain all of the fields representing that
particular model's table.

When no data is found, the values for those constants are created for
each model's current week.  The issue I'm having is when trying to use
the same constant to update data on top of the current week if data
already exists.  I thought I would be able to use save or save! but
those methods won't exist with the current way I'm processing the data.

If anyone can help me with the last part of the method after (else)
where I'm trying to update the data, I'd appreciate it.

I've added notes to the link to help.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to