{"id":15471723,"url":"https://github.com/thadeu/rails-bootstrap-grid","last_synced_at":"2025-04-22T13:19:29.918Z","repository":{"id":56890465,"uuid":"75320324","full_name":"thadeu/rails-bootstrap-grid","owner":"thadeu","description":"💎  A Rails plugin that contains helpers for Bootstrap Grid","archived":false,"fork":false,"pushed_at":"2016-12-09T17:54:32.000Z","size":28,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-22T13:19:04.936Z","etag":null,"topics":["bootstrap","rails","rails-bootstrap","rails-grid"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thadeu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-01T18:24:05.000Z","updated_at":"2024-01-13T04:27:32.000Z","dependencies_parsed_at":"2022-08-20T16:00:59.100Z","dependency_job_id":null,"html_url":"https://github.com/thadeu/rails-bootstrap-grid","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thadeu%2Frails-bootstrap-grid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thadeu%2Frails-bootstrap-grid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thadeu%2Frails-bootstrap-grid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thadeu%2Frails-bootstrap-grid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thadeu","download_url":"https://codeload.github.com/thadeu/rails-bootstrap-grid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250246730,"owners_count":21398919,"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":["bootstrap","rails","rails-bootstrap","rails-grid"],"created_at":"2024-10-02T02:21:28.476Z","updated_at":"2025-04-22T13:19:29.892Z","avatar_url":"https://github.com/thadeu.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rails Bootstrap Grid\n\nA Rails Plugin for developers that use Bootstrap.\nby Thadeu Esteves Jr.\n\n[![Gem Version](https://badge.fury.io/rb/rails-bootstrap-grid.svg)](https://badge.fury.io/rb/rails-bootstrap-grid)\n\n## Dependecies\n\nUse in Ruby \u003e= 1.9 and Ruby on Rails \u003e= v4.X and Boostrap load!\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'rails-bootstrap-grid', '0.1.1'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install rails-bootstrap-grid -v '0.1.1'\n\n## Usage\n\nContainers availables\n* row\n* container\n* container-fluid\n\nCols Methods availables\n* col_xs_1, col_xs_2, col_xs_3, col_xs_4, col_xs_5, col_xs_6, col_xs_7, etc.. \n* col_sm_1, col_sm_2, col_sm_3, col_sm_4, col_sm_5, col_sm_6, col_sm_7, etc.. \n* col_md_1, col_md_2, col_md_3, col_md_4, col_md_5, col_md_6, col_md_7, etc.. \n* col_lg_1, col_lg_2, col_lg_3, col_lg_4, col_lg_5, col_lg_6, col_lg_7, etc..\n\n## Form Example using the Gem SimpleForm\n```ruby\n\u003c%= simple_form_for(@model, url: route_path) do |f| %\u003e\n    \u003c%= container do %\u003e\n        \u003c%= f.error_notification %\u003e\n        \u003c%= col_md_3 f.input :name, label: 'Name Canonical'  %\u003e\n        \u003c%= col_md_3 f.input :username, html: { placeholder: 'Username' } %\u003e\n        \u003c%= col_md_3 f.input :password, label: 'Password' %\u003e\n        \u003c%= col_md_2 f.input :remember, as: :checkbox %\u003e\n        \u003c%= col_md_12 f.submit, html: { class: 'btn btn-primary' } %\u003e\n    \u003c% end %\u003e\n\u003c% end %\u003e\n```\n\nuse an container with block\n\n```ruby\n\u003c%= container do %\u003e\n more code\n\u003c% end %\u003e\n```\n\nuse an row with block\n\n```ruby\n\u003c%= row do %\u003e\n more code\n\u003c% end %\u003e\n```\n\nuse an cols with bootstrap\n\n```ruby\n\u003c%= col_md_12 f.input :username, html: { class: '', id: '', data: {} } %\u003e\n```\n\n```ruby\n\u003c%= col_md_12 do %\u003e\n    \u003c%= col_md_6 do %\u003e\n        \u003c% f.input :username %\u003e\n    \u003c% end \u003e\n\n    \u003c%= col_md_6 do %\u003e\n        \u003c% f.input :password %\u003e\n    \u003c% end \u003e\n\u003c% end \u003e\n```\n\nClean HTML code for ERB Files\n\n```ruby\n\u003c%= col_md_12 html: { data: { error: false } } do %\u003e\n    \u003c%= col_md_6 f.input :username %\u003e\n    \u003c%= col_md_6 f.input :password %\u003e\n    \u003c%= col_md_6 f.input :remember, as: :checkbox %\u003e\n\u003c% end %\u003e\n```\n\nUse with any options HTML\n\n```ruby\n\u003c%= col_md_12 html: { data: { error: false } } do %\u003e\n    \u003c%= col_md_6 html: { class: 'username', data: { error: false } } do %\u003e\n        \u003c%= f.input :username %\u003e\n    \u003c% end \u003e\n\n    \u003c%= col_md_6 html: { class: 'username', data: { error: false } } do %\u003e\n        \u003c%= f.input :password %\u003e\n    \u003c% end \u003e\n\u003c% end %\u003e\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/Thadeu/rails-bootstrap-grid.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthadeu%2Frails-bootstrap-grid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthadeu%2Frails-bootstrap-grid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthadeu%2Frails-bootstrap-grid/lists"}