change controller scaffold template in order to build resource params

Change scaffold controllers template in order to generate resource params.
This fetch will fail in case the singular_name key is not present. I believe we should change it to `require`