Error in the full controller code

Should be 'whitelisted_post_params' instead of 'params[whitelisted_post_params]'