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?

params[‘spaces.title’] = params[‘title’]

?

Am I missing something? If you want to make sure the other one is gone you can always do params[‘title’] = nil