<%= form_tag({:action=>'create'} ,:multipart=>true,:id=>'myforms' ) do %>
<%
if @menu && @menu.menu_attchment.present?
chekpath = "https://get-your-venue.b-cdn.net/GYV/gyv-menu/#{@menu.menu_attchment}"
if chekpath
menuattch ="https://get-your-venue.b-cdn.net/GYV/gyv-menu/#{@menu.menu_attchment}"
%>
<%end%>
<%end%>
Group *
Title *
Item *
S.No
Group
Title
Type
Item
Action
<%
i = 1
if @allmenu_item_list
@allmenu_item_list.each do |menu|
gruop=""
titl=""
gruopobj = get_gruop_name(menu.mld_compcode,menu.mld_group)
if gruopobj
gruop=gruopobj.grp_name
end
titlobj = get_titl_name(menu.mld_compcode,menu.mld_title)
if titlobj
titl=titlobj.tc_title_counter
setupcost=titlobj.tc_min_setup_cost
end
%>
<%=i%>
<%=gruop%>
<%=titl%>
<%=menu.mld_type%>
<%=menu.mld_item%>
<%
i+=1
end
%>
<%
end
%>
<% if @myAddAld || @myEditAld %> <% end %>
<% end %>
Fill List from Menu
Menu *
<%
message = ""
rescue ActiveRecord::RecordNotFound => e
# Handle the specific exception when the record is not found
message = "Record not found #{e.message}"##{e.message}
isFlags = false
rescue ActiveRecord::StatementInvalid => e
# Handle SQL syntax errors or invalid queries
message = "Unknown error #{e.message}" ##{e.message}
isFlags = false
rescue StandardError => e
# Handle any other errors
message = "An error occurred #{e.message}" ##{e.message}
isFlags = false
end
%>
<%=message%>