app/controllers/hyrax/users_controller.rb in hyrax-2.9.6 vs app/controllers/hyrax/users_controller.rb in hyrax-3.0.0.pre.beta1
- old
+ new
@@ -39,10 +39,10 @@
[nil]
end
def find_user
@user = ::User.from_url_component(params[:id])
- redirect_to root_path, alert: "User does not exist" unless @user
+ redirect_to root_path, alert: "User '#{params[:id]}' does not exist" if @user.nil?
end
def sort_value
sort = params[:sort].blank? ? "name" : params[:sort]
case sort