
March 1st, 2007, 01:09 PM
|
|
Contributing User
|
|
Join Date: Mar 2003
Posts: 174
Time spent in forums: 14 h 27 m 11 sec
Reputation Power: 11
|
|
|
Swapping key names in a hash
Hello,
I'm trying to change the name of a hash key. I want to take a params[:value] and modify some of it's key names to work better in model sql statements.
for instance I have a param hash key named "title" (params['title']) and I want to change that key name to 'spaces.title' so it will work better w/in a conditional statement in joined table sql call.
Any ideas?
|