{"record":{"id":"cdb22a24136dfacb","repo":"fatfreecrm/fat_free_crm","slug":"tab-settings-are-missing-please-run-b-rake-ffcrm","errorCode":null,"errorMessage":"Tab settings are missing, please run <b>rake ffcrm:setup</b> command.","messagePattern":"Tab settings are missing, please run <b>rake ffcrm:setup</b> command\\.","errorType":"exception","errorClass":"FatFreeCRM::MissingSettings","httpStatus":500,"severity":"error","filePath":"app/helpers/application_helper.rb","lineNumber":15,"sourceCode":"# frozen_string_literal: true\n\n# Copyright (c) 2008-2013 Michael Dvorkin and contributors.\n#\n# Fat Free CRM is freely distributable under the terms of MIT license.\n# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php\n#------------------------------------------------------------------------------\nmodule ApplicationHelper\n  def tabs(tabs = nil)\n    tabs ||= controller_path.match?(/admin/) ? FatFreeCRM::Tabs.admin : FatFreeCRM::Tabs.main\n    if tabs\n      @current_tab ||= tabs.first[:text] # Select first tab by default.\n      tabs.each { |tab| tab[:active] = (@current_tab == tab[:text] || @current_tab == tab[:url][:controller]) }\n    else\n      raise FatFreeCRM::MissingSettings, \"Tab settings are missing, please run <b>rake ffcrm:setup</b> command.\"\n    end\n  end\n\n  #----------------------------------------------------------------------------\n  def tabless_layout?\n    %w[sessions passwords registrations confirmations].include?(controller.controller_name) ||\n      ((controller.controller_name == \"users\") && %w[create new].include?(controller.action_name))\n  end\n\n  # Show existing flash or embed hidden paragraph ready for flash[:notice]\n  #----------------------------------------------------------------------------\n  def show_flash(options = { sticky: false })\n    %i[error warning info notice alert].each do |type|\n      next unless flash[type]\n\n      html = content_tag(:div, h(flash[type]), id: \"flash\")\n      flash[type] = nil\n      return html << content_tag(:script, \"crm.flash('#{type}', #{options[:sticky]})\".html_safe, type: \"text/javascript\")","sourceCodeStart":1,"sourceCodeEnd":33,"githubUrl":"https://github.com/fatfreecrm/fat_free_crm/blob/3bb64ca0d59d9ad46ea28129481d2a979d2a8de5/app/helpers/application_helper.rb#L1-L33","documentation":"Error \"Tab settings are missing, please run <b>rake ffcrm:setup</b> command.\" thrown in fatfreecrm/fat_free_crm.","triggerScenarios":"Thrown at app/helpers/application_helper.rb:15 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3bb64ca0d59d9ad46ea28129481d2a979d2a8de5","analyzedAt":"2026-08-23T09:22:43.510Z","schemaVersion":2},"datasetVersion":"2026-08-23T13:39:53.451Z"}