{"id":15692098,"url":"https://github.com/ksylvest/formula","last_synced_at":"2025-05-07T23:07:34.972Z","repository":{"id":56847568,"uuid":"1062256","full_name":"ksylvest/formula","owner":"ksylvest","description":"A Rails form generator that creates simple markup","archived":false,"fork":false,"pushed_at":"2025-05-05T12:30:38.000Z","size":706,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-07T23:07:29.135Z","etag":null,"topics":["forms","rails","ruby"],"latest_commit_sha":null,"homepage":"https://formula.ksylvest.com","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ksylvest.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2010-11-08T16:33:03.000Z","updated_at":"2025-05-05T12:30:41.000Z","dependencies_parsed_at":"2024-12-13T12:22:24.600Z","dependency_job_id":"2f66cac8-2d6b-4018-8b4d-4dd145c5a367","html_url":"https://github.com/ksylvest/formula","commit_stats":{"total_commits":203,"total_committers":3,"mean_commits":67.66666666666667,"dds":"0.039408866995073843","last_synced_commit":"851f32d2b92034c41e38b0944db2029b23b01cb8"},"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksylvest%2Fformula","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksylvest%2Fformula/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksylvest%2Fformula/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksylvest%2Fformula/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ksylvest","download_url":"https://codeload.github.com/ksylvest/formula/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252968118,"owners_count":21833251,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["forms","rails","ruby"],"created_at":"2024-10-03T18:29:07.454Z","updated_at":"2025-05-07T23:07:34.951Z","avatar_url":"https://github.com/ksylvest.png","language":"Ruby","readme":"# Formula\n\nFormula is a Rails form helper that generates awesome markup. The project lets users create semantically beautiful forms without introducing too much syntax.\n\n## Requirements\n\nThe gem is tested with:\n\n- Ruby 3.3\n- Rails 7.2\n\n## Installation\n\n```bash\ngem install formula\n```\n\n## Examples\n\n```erb\n\u003c%= formula_form_for @user do |f| %\u003e\n  \u003c%= f.input :email %\u003e\n  \u003c%= f.input :password %\u003e\n  \u003c%= f.button 'Save' %\u003e\n\u003c% end %\u003e\n```\n\n```erb\n\u003c%= formula_form_for @user do |f| %\u003e\n  \u003c%= f.input :email, label: \"Email:\", hint: \"We promise never to bother you.\" %\u003e\n  \u003c%= f.input :password, label: \"Password:\", hint: \"Must be at least six characters.\" %\u003e\n  \u003c%= f.button 'Save' %\u003e\n\u003c% end %\u003e\n```\n\n```erb\n\u003c%= formula_form_for @company do |f|\n  \u003c%= f.input :url, container: { class: 'third' }, input: { class: 'fill' } %\u003e\n  \u003c%= f.input :phone, container: { class: 'third' }, input: { class: 'fill' } %\u003e\n  \u003c%= f.input :email, container: { class: 'third' }, input: { class: 'fill' } %\u003e\n  \u003c%= f.button 'Save', button: { class: 'fancy' } %\u003e\n\u003c% end %\u003e\n```\n\n```erb\n\u003c%= formula_form_for @user do |f| %\u003e\n  \u003c%= f.input :email, label: \"Email:\" %\u003e\n  \u003c%= f.input :password, label: \"Password:\" %\u003e\n  \u003c%= f.input :gender, label: 'Gender:', as: :select, choices: User::GENDERS %\u003e\n  \u003c%= formula_fields_for @user.payment do |payment_f| %\u003e\n    \u003c%= payment_f.input :credit_card_number, label: 'Number:' %\u003e\n    \u003c%= payment_f.input :credit_card_expiration, label: 'Expiration:' %\u003e\n  \u003c% end %\u003e\n  \u003c%= f.button 'Save', button: { class: 'fancy' } %\u003e\n\u003c% end %\u003e\n```\n\n```erb\n\u003c%= formula_form_for @user do |f| %\u003e\n  \u003c%= f.block :favourite %\u003e\n    \u003c% @favourites.each do |favourite| %\u003e\n      ...\n    \u003c% end %\u003e\n  \u003c% end %\u003e\n  \u003c%= f.button 'Save', button: { class: 'fancy' } %\u003e\n\u003c% end %\u003e\n```\n\n## Copyright\n\nCopyright (c) 2010 - 2024 Kevin Sylvestre. See LICENSE for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksylvest%2Fformula","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fksylvest%2Fformula","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksylvest%2Fformula/lists"}