Arthur,
Why didn't you use action.name.capitalize ?