app/controllers/application_controller.rb
#
# Return a 404 response with our default 404 page
#
Return a 404 response with our default 404 page
Return a 404 response with our default 404 page
def render_404
    respond_to do |format|
      format.any(:html, :mobile) { render(template: "shared/404", status: 404, layout: "application") }
      format.json { render :json => {:error => t(:not_found)}, :status => 404 }
    end
  end
def render_404 respond_to do | format | format . any ( :html , :mobile ) { render ( template : "shared/404" , status : 404 , layout : "application" ) } format . json { render :json => { :error => t ( :not_found ) } , :status => 404 } end end
Return a 404 response with our default 404 page
Return a 404 response with our default 404 page