Actually, we could use either view.name or params[:content_view][:name] for the success notice; however, in the case of the failure notice, it is possible that view.name is not available.   As a result, I chose to use params for both the success and failure for consistency.