padrino/padrino-framework · error · SystemExit

<= You need an ORM adapter for run this generator. Sorry!

Error message

<= You need an ORM adapter for run this generator. Sorry!

What it means

Error "<= You need an ORM adapter for run this generator. Sorry!" thrown in padrino/padrino-framework.

Source

Thrown at padrino-gen/lib/padrino-gen/generators/model.rb:89

      #
      def model_name_already_exists?
        @camel_name = name.to_s.underscore.camelize

        @project_name = ''
        @project_name = fetch_project_name

        return false unless already_exists?(@camel_name, @project_name)
        true
      end

      ##
      # Alert if there is not an ORM Adapter
      #
      def check_orm
        return true if include_component_module_for(:orm)

        say '<= You need an ORM adapter for run this generator. Sorry!'
        raise SystemExit
      end

      ##
      # Check app path
      #
      def correct_path?
        return true if in_app_root?
        say 'You are not at the root of a Padrino application! (config/boot.rb not found)'
        false
      end

      ##
      # Check if the fields are valid
      #
      def has_invalid_fields?
        if (invalids = invalid_fields(fields))
          say 'Invalid field name:', :red
          say " #{invalids.join(', ')}"

View on GitHub (pinned to 167044f3d5)

When it happens

Trigger: Thrown at padrino-gen/lib/padrino-gen/generators/model.rb:89 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of padrino/padrino-framework@167044f3d5 (2026-08-23). Data as JSON: /api/errors/d5b9363c5baf2f52. Report an issue: GitHub.