So I am familiarising myself with both rails and of course rails 4.
So this is what I have at the bottom of my controller
def post_params params.re
Better You can use before_create callback to update the value.
before_create
like,
before_create :check_params def check_params self.category.downcase! end