change indentation
simplify sanitizer in *_params function
change before_action to before_filter to make it backward compatible to rails 3.2