Simplify calls to user block path helpers

This commit is contained in:
Anton Khorev 2024-12-20 06:30:21 +03:00
parent 33bca7cd65
commit 6b41f14ff8
3 changed files with 21 additions and 21 deletions

View file

@ -64,7 +64,7 @@ class UserBlocksController < ApplicationController
render :action => "new"
end
else
redirect_to new_user_block_path(:display_name => params[:display_name])
redirect_to new_user_block_path(params[:display_name])
end
end
@ -101,7 +101,7 @@ class UserBlocksController < ApplicationController
end
end
else
redirect_to edit_user_block_path(:id => params[:id])
redirect_to edit_user_block_path(params[:id])
end
end