Added whitelisting of params on generate action

Added whitelisted params to the controller template for issue #146