awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
heartcombo avatar

heartcombo/simple_form

0
View on GitHub↗
8,229 星标·1,297 分支·Ruby·MIT·8 次浏览

Simple Form

Simple Form is a Ruby on Rails form builder that provides a domain specific language for generating HTML forms mapped to database models. It functions as an automatic model input mapper, selecting the appropriate HTML input element based on the database column type of a model.

The project employs a markup independent approach to separate business requirements from final HTML rendering and CSS. It provides a customizable form component library consisting of extensible builders and wrappers to standardize layout structures and input behaviors.

The library covers database-driven form generation and the handling of dynamic model association inputs. It includes capabilities for internationalized form labeling through lookup keys and the creation of collection-based inputs.

Features

  • Data Type Mappings - Automatically selects the appropriate HTML input element by mapping the database column's data type to a corresponding field.
  • Form Builders - Provides a domain specific language for generating flexible HTML forms mapped to database models within Ruby on Rails.
  • Database Type Mappings - Matches database column types to the most appropriate HTML input elements automatically.
  • Association Field Renderers - Provides automatic rendering of form fields based on the model relationships defined in the database.
  • Automatic Form Generation - Automatically generates HTML form fields based on the data types of database columns.
  • Nested Input Renderers - Renders form fields for model associations by automatically determining the collection and input type from the relationship.
  • Customizable Form Builder Logic - Allows global modification of input rendering and configuration by extending the base builder logic.
  • Extensible - Implements an extensible builder hierarchy allowing modification of input rendering logic through class inheritance.
  • Form Component Libraries - Ships a customizable library of extensible builders and wrappers for creating standardized form layout structures.
  • Markup-Independent Form Generators - Decouples business requirements from final HTML rendering through a markup-independent DSL approach.
  • Ruby on Rails Frameworks - Provides a simplified DSL for building user input forms specifically within the Ruby on Rails ecosystem.
  • Database-to-Input Mappers - Provides automatic selection of HTML input elements by inspecting the database column types of the associated model.
  • Form Definition DSLs - Uses a domain specific language to decouple input field definitions from their final HTML rendering.
  • Form Renderers - Implements a logic-based DSL to programmatically generate HTML output and control form layout independently of the final markup.
  • Translation Keys - Uses unique translation keys to map form labels and hints to localized text strings.
  • Collection-Based Selection Inputs - Automatically generates radio buttons or checkboxes from arrays or ranges to capture multiple user choices.
  • Form Element Wrappers - Provides wrappers that encapsulate standard form elements to apply consistent CSS classes and HTML structures.
  • Custom Input Overrides - Enables the creation of new input behaviors and rendering logic to expand the library of available form components.
  • Input Collection Components - Creates select boxes, radio buttons, or checkboxes from arrays or ranges to capture user choices.
  • Internationalized Form Elements - Populates form labels and placeholders using lookup keys for internationalization across multiple languages.
  • Key-to-Label Formatters - Transforms technical lookup keys into human-readable, internationalized labels for form fields.
  • Layout Wrappers - Wraps form inputs in configurable HTML structures to ensure consistent styling across different design frameworks.

Star 历史

heartcombo/simple_form 的 Star 历史图表heartcombo/simple_form 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Simple Form 的开源替代方案

相似的开源项目,按与 Simple Form 的功能重合度排序。
  • formtastic/formtasticformtastic 的头像

    formtastic/formtastic

    5,215在 GitHub 上查看↗

    Formtastic is a Ruby on Rails form builder that provides a domain-specific language for generating semantically rich and accessible HTML forms. It functions as a model-driven framework that automatically maps database schema attributes and associations to corresponding input fields, streamlining the creation of data entry interfaces. The framework distinguishes itself through a hierarchical lookup system that manages internationalized labels, hints, and action buttons across different model and attribute namespaces. It also supports complex data relationships by recursively processing nested

    Ruby
    在 GitHub 上查看↗5,215
  • justinfrench/formtasticjustinfrench 的头像

    justinfrench/formtastic

    5,215在 GitHub 上查看↗

    Formtastic is a Ruby on Rails plugin designed to automate the creation of semantic and accessible web forms. By mapping database models directly to form fields, the library generates structured HTML markup that adheres to accessibility standards, ensuring that labels and inputs are correctly associated for assistive technologies. The library utilizes a domain-specific language to abstract complex form structures into concise method calls. It distinguishes itself through a metadata-driven approach that inspects database schemas and validation rules to automatically select appropriate input typ

    Ruby
    在 GitHub 上查看↗5,215
  • digitallyinduced/ihpdigitallyinduced 的头像

    digitallyinduced/ihp

    5,294在 GitHub 上查看↗

    ihp is a type-safe web framework and full-stack application orchestrator designed for PostgreSQL. It functions as a server-side rendering framework and a type-safe ORM that automatically generates record types from SQL schemas to ensure compile-time query validation. The platform distinguishes itself by verifying routing, database queries, and templates at compile time to prevent runtime crashes. It implements real-time web interfaces using WebSockets for instant data synchronization and employs server-driven hypermedia for partial DOM patching. The framework covers a broad range of integrat

    Haskellframeworkhacktoberfesthaskell
    在 GitHub 上查看↗5,294
  • rusqlite/rusqliterusqlite 的头像

    rusqlite/rusqlite

    4,058在 GitHub 上查看↗

    Rusqlite is an embedded database interface and relational database driver that provides a client library for interacting with SQLite. It functions as an SQL query wrapper, enabling the management of local file-based or in-memory databases through a safe interface. The library allows for the extension of native database capabilities by implementing custom scalar functions, collations, and virtual tables. It also supports the embedding of the database engine directly into the application binary to remove external library dependencies. The project covers a broad range of capabilities including

    Rustbindingsrustsqlite
    在 GitHub 上查看↗4,058
查看 Simple Form 的所有 30 个替代方案→

常见问题解答

heartcombo/simple_form 是做什么的?

Simple Form is a Ruby on Rails form builder that provides a domain specific language for generating HTML forms mapped to database models. It functions as an automatic model input mapper, selecting the appropriate HTML input element based on the database column type of a model.

heartcombo/simple_form 的主要功能有哪些?

heartcombo/simple_form 的主要功能包括:Data Type Mappings, Form Builders, Database Type Mappings, Association Field Renderers, Automatic Form Generation, Nested Input Renderers, Customizable Form Builder Logic, Extensible。

heartcombo/simple_form 有哪些开源替代品?

heartcombo/simple_form 的开源替代品包括: formtastic/formtastic — Formtastic is a Ruby on Rails form builder that provides a domain-specific language for generating semantically rich… justinfrench/formtastic — Formtastic is a Ruby on Rails plugin designed to automate the creation of semantic and accessible web forms. By… digitallyinduced/ihp — ihp is a type-safe web framework and full-stack application orchestrator designed for PostgreSQL. It functions as a… rusqlite/rusqlite — Rusqlite is an embedded database interface and relational database driver that provides a client library for… doctrine/dbal — This project is a SQL database abstraction layer that provides a consistent object-oriented interface for interacting… sqlalchemy/sqlalchemy — SQLAlchemy is a comprehensive Python SQL toolkit and object-relational mapper that provides a full suite of tools for…