check params[:post] before attempting save