Sorry that I did not give you clear enough requirements. Here is an
example of what I am trying to do
Athlete.create
first_name => "Kobe",:last_name=>"Bryant", :birthdate
=>"10/12/1969",:nickname=>"dave",
fficial_website=>"
www.gerberdata.net")
{:athlete_nickname => "gerbdla",:athlete_birthdate =>
"1/1/2010",:athlete_official_website => "
www.gerberdata.net"}
now I have this paramater set each params coresponds to a field in my
database
so :athlete_official_website should match
athlete => object
official_website => official_website
:athlete_birthdate
athlete
birthdate
:athlete_nickname
athlete
nickname
so I need to account for two conditions
1. sometimes the field has an underscore in it as official_website
2. sometimes the field has no underscore so it is just birthdate
or if there is a way to do this type of logic better that would be
appreciated.