Update controller basics with flash code that uses strong parameters

Noticed that the code passes in ```params[:post]```. Assuming that this is a hash, I updated the code to use strong parameters instead.