<% end %>
<%= form_tag({:action=>'create'} ,:multipart=>true,:id=>'myForms' ) do %>
Choose Elements to Include in Your PPT
<% if @CreateCatalog%><% if @CreateCatalog.catlog_secndpage_img.present?%>
<%end%>
<%end%>
<% if @CreateCatalog%><% if @CreateCatalog.catlog_thankyou_img.present?%>
<%end%>
<%end%>
<% 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%>