ご覧のとおり、URL からのパラメーター (params[:authorization]) があります。
authorization_selected = params[:authorization]
new_parcel = params[:new_parcel].to_i
puts authorization_selected.class (in the console show type String)
puts new_parcel.class (in the console show type Fixnum)
私のコントローラーには、次のものがあります。
@portability = Portability.new
@portability.employee_id = authorization_selected.employee_id
ただし、これはエラーを返します。
undefined method `employee_id' for 3:Fixnum
両方が整数である必要があります。どうやって?