thousands-battery-19530
12/13/2023, 7:40 PM<%
@certificate = @resource.record
@supplier = @certificate.supplier
@company_rf = @supplier.company_rf
@url = Certificates::CalculateLink.call(certificate: @certificate)
@global_certificate = Certificates::FindGlobalCertificate.call(certificate: @certificate)
%>
I did this but it is a very bad practice and bad smelllemon-wall-20836
12/13/2023, 8:41 PM.rb file and then use them in the erb using tool.SOMETHINGthousands-battery-19530
12/15/2023, 1:13 AMthousands-battery-19530
12/15/2023, 1:14 AMloud-jewelry-99127
12/15/2023, 5:06 AMlemon-wall-20836
12/15/2023, 8:54 AMlemon-wall-20836
12/15/2023, 8:54 AMtool_name.rb filelemon-wall-20836
12/15/2023, 8:55 AMr g avo:resource_tool something, you got two files. something.rb and something.html.erb. the something.rb file is where you should declare the variableslemon-wall-20836
12/15/2023, 8:56 AMthousands-battery-19530
12/15/2023, 1:34 PMlemon-wall-20836
01/06/2024, 10:15 PM