params rails code example
Example 1: rails before_action
before_action :run_method, only: [:index, :show]
Example 2: params except rails
params.require(:shoes).except!(:shoes_id).permit!
before_action :run_method, only: [:index, :show]
params.require(:shoes).except!(:shoes_id).permit!