<% begin %>
<%= render "layouts/header" %>
<%= render "layouts/sidebar" %>
Company
<%= render "layouts/breadcrumbs" %>
<% if flash[:error] %>
× <%= flash[:error] %>
<% end %> <%= form_tag({action: 'create'}, multipart: :true, id: :myforms, class: "form-horizontal") do %>

<% ischeckFlags = false mycompimage = '' signlogo = "" checksignlog = false if @companyItems!=nil chekpath = "#{Rails.root}/public/images/logo/#{@companyItems.cmp_logos}" if File.file?(chekpath) ischeckFlags = true mycompimage = "#{root_url}images/logo/#{@companyItems.cmp_logos}" end end if @companyItems!=nil chekpathx = "#{Rails.root}/public/images/signs/#{@companyItems.cmp_signs}" if File.file?(chekpathx) checksignlog = true signlogo = "#{root_url}images/signs/#{@companyItems.cmp_signs}" end end %> <% if ischeckFlags %> <% end %>

<% if checksignlog %> <% end %>
*Enter BCC email addresses, separated by commas (e.g., xyz@xyz.com, abc@abc.com).
<% end %>
<% message = "" rescue ActiveRecord::RecordNotFound => e # Handle the specific exception when the record is not found message = "Record not found "##{e.message} isFlags = false rescue ActiveRecord::StatementInvalid => e # Handle SQL syntax errors or invalid queries message = "Unknown error " ##{e.message} isFlags = false rescue StandardError => e # Handle any other errors message = "An error occurred" ##{e.message} isFlags = false end %> <%=message%>