I’d like to upcase a variable before it is saved, but I’m not sure how
to access the incoming param or where this work should be performed:
In my update method, I have:
@device = Device.find(params[:id])
params[:device[macaddress]].upcase <-- problem code
…usual stuff here
‘macaddress’ is the variable I’d like to upcase.
Does anybody have suggestions?