<% begin %>
<%= render "layouts/header" %>
<%= render "layouts/sidebar" %>
Menu List
<%= render "layouts/breadcrumbs" %>
<% if flash[:error] %>
× <%= flash[:error] %>
<% end %>
<% if @myAddAld %> <% end %>
<% pagestart = params[:page].present? ? params[:page].to_i : 1 %> <% i = pagestart <= 1 ? 1 : ((pagestart - 1) * 10) + 1 %> <% if @menu_list.length>0 %> <% @menu_list.each do |menu| %> <% i += 1 %> <% end %> <% end %>
S.No Description Menu Type Action
<%=i%> <%= menu.menu_description%> <%= menu.menu_type%>
<%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%>
<% 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%>