{"id":15064553,"url":"https://github.com/hardpixel/tableless","last_synced_at":"2025-04-10T12:22:20.716Z","repository":{"id":59157120,"uuid":"107097628","full_name":"hardpixel/tableless","owner":"hardpixel","description":"ActiveRecord models without database tables.","archived":false,"fork":false,"pushed_at":"2025-01-16T23:16:16.000Z","size":32,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T11:11:11.830Z","etag":null,"topics":["activerecord","rails","ruby-gem","tableless"],"latest_commit_sha":null,"homepage":null,"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/hardpixel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"github":["jonian"]}},"created_at":"2017-10-16T08:10:09.000Z","updated_at":"2025-01-16T23:16:14.000Z","dependencies_parsed_at":"2025-02-17T05:41:37.827Z","dependency_job_id":null,"html_url":"https://github.com/hardpixel/tableless","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardpixel%2Ftableless","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardpixel%2Ftableless/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardpixel%2Ftableless/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardpixel%2Ftableless/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hardpixel","download_url":"https://codeload.github.com/hardpixel/tableless/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248217114,"owners_count":21066633,"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":["activerecord","rails","ruby-gem","tableless"],"created_at":"2024-09-25T00:20:29.011Z","updated_at":"2025-04-10T12:22:20.688Z","avatar_url":"https://github.com/hardpixel.png","language":"Ruby","readme":"# Tableless\n\nCreate models that are not bound to the database and take advantage of the ActiveRecord features, such as validation, relationships, etc.\n\n[![Gem Version](https://badge.fury.io/rb/tableless.svg)](https://badge.fury.io/rb/tableless)\n[![Build](https://github.com/hardpixel/tableless/actions/workflows/build.yml/badge.svg)](https://github.com/hardpixel/tableless/actions/workflows/build.yml)\n[![Maintainability](https://api.codeclimate.com/v1/badges/853a6013a50339b2baea/maintainability)](https://codeclimate.com/github/hardpixel/tableless/maintainability)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'tableless'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install tableless\n\n## Usage\n\nDefine a model like this:\n\n```ruby\nclass ContactMessage \u003c ActiveRecord::Base\n  include Tableless\n\n  attribute :name,  :string\n  attribute :email, :string\n\n  validates :name, :email, presence: true\nend\n```\n\nYou can now use the model in a view like this:\n\n```ruby\n\u003c%= form_for :message, @message do |f| %\u003e\n  Name: \u003c%= f.text_field :name %\u003e\n  Email: \u003c%= f.text_field :email %\u003e\n\u003c% end %\u003e\n```\n\nAnd in the controller:\n\n```ruby\ndef message\n  @message = ContactMessage.new(params[:message])\n\n  if @message.valid?\n    # Process the message...\n  end\nend\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. To install this gem onto your local machine, run `bundle exec rake install`.\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/hardpixel/tableless.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","funding_links":["https://github.com/sponsors/jonian"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardpixel%2Ftableless","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhardpixel%2Ftableless","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardpixel%2Ftableless/lists"}