{"id":15611907,"url":"https://github.com/tarellel/bootstrap_views_generator","last_synced_at":"2025-06-23T13:37:46.927Z","repository":{"id":62554504,"uuid":"185288079","full_name":"tarellel/bootstrap_views_generator","owner":"tarellel","description":"A Rails generator for creating bootstrap styled views (Erb, Slim, and HAML).","archived":false,"fork":false,"pushed_at":"2023-11-14T14:07:17.000Z","size":97,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-21T05:15:13.935Z","etag":null,"topics":["bootstrap","gem","generator","rails","ruby","template","twitter-bootstrap"],"latest_commit_sha":null,"homepage":"","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/tarellel.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2019-05-06T23:53:28.000Z","updated_at":"2025-02-20T22:06:54.000Z","dependencies_parsed_at":"2024-10-03T06:21:03.915Z","dependency_job_id":"ebed9123-1466-4ebb-8f5b-b0d4e072a440","html_url":"https://github.com/tarellel/bootstrap_views_generator","commit_stats":{"total_commits":40,"total_committers":2,"mean_commits":20.0,"dds":"0.025000000000000022","last_synced_commit":"d9533e4d935560084019c65aa1aa17ecdc066dc1"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tarellel/bootstrap_views_generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarellel%2Fbootstrap_views_generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarellel%2Fbootstrap_views_generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarellel%2Fbootstrap_views_generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarellel%2Fbootstrap_views_generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tarellel","download_url":"https://codeload.github.com/tarellel/bootstrap_views_generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarellel%2Fbootstrap_views_generator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261487561,"owners_count":23166112,"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","gem","generator","rails","ruby","template","twitter-bootstrap"],"created_at":"2024-10-03T06:20:59.312Z","updated_at":"2025-06-23T13:37:41.902Z","avatar_url":"https://github.com/tarellel.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BootstrapViewsGenerator\n\n![](https://ruby-gem-downloads-badge.herokuapp.com/bootstrap_views_generator?type=total)  [![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT) [![Gem](https://img.shields.io/gem/v/bootstrap_views_generator.svg?style=flat)](http://rubygems.org/gems/bootstrap_views_generator \"View this project in Rubygems\")\n\nThis gem is used for generating Bootstrap based scaffold views for your Rails application. They can be Erb, Slim, or HAML. You can include pagination (using Pagy), simple_form (for the form components), and if you'd like you can utilize the meta-tags gems to all dynamic page titles when switching between your view components.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'bootstrap_views_generator', group: :development\n\n# Now make sure you have the bootstrap gem installed in your Gemfile\ngem 'bootstrap', '~\u003e 4.3'\n\n# And ensure you have bootstrap included in your application.scss\n@import 'bootstrap';\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install bootstrap_views_generator\n\n## Usage\n\n```shell\nUsage:\n  rails g bootstrap:install [options]\n\nOptions:\nOptions:\n-t, [--template-engine=TEMPLATE_ENGINE]     # Indicates when to generate using a designated template engine (erb, slim, haml)\n                                            # Default: erb\n--simpleform                                # Indicates if simple_form is to be used to generate the forms\n                                            # Default: false\n--pagination                                # Specify if you want to add pagination to the index pages\n                                            # Defaults: false (requires Pagy to use pagination)\n--metatags                                  # If you want the pages titles to use the metatags gem function for the page title\n                                            # Default: false\n--layout                                    # Over-write your application layout file with a bootstrap based layout\n                                            # Default: false\n--devise                                    # If you want to generate bootstrap based devise views\n                                            # Default: false\n--skip_javascript                           # If you want to skip adding javascript_include_tag || javascript_pack_tag to the layouts\n                                            # Default: false\n--skip_turbolinks                           # Do you want to skip associating turbolinks with the assets and views\n                                            # Default: false\n```\n\n## Options\n\n##### Template Engines\n\nSupported Template Engines\n\n* ERB\n* HAML\n* Slim\n\n**HAML**\n\nMake sure you have haml added to your your Gemfile\n```ruby\ngem 'haml-rails'\n\n# generate haml views\nrails g bootstrap:install --template_engine=haml\n```\n\n**Slim**\nMake sure you have Slim added to your Gemfile\n```ruby\ngem 'slim-rails'\n\n# generate Slim views\nrails g bootstrap:install --template_engine=slim\n```\n\n#### Pagination\n\nEnsure you have [Pagy](https://github.com/ddnexus/pagy) gem installed\n```ruby\n# Gemfile\ngem 'pagy'\n\n# Make sure you have the bootstrap pagy helper included\n# config/initializers/pagy.rb\nrequire 'pagy/extras/bootstrap'\n```\n\n\n#### Meta-Tags\nEnsure you have the [meta-tags](https://github.com/kpumuk/meta-tags) gem installed\n```ruby\ngem 'meta-tags'\n```\n\n### Examples\n\nGenerate bootstrap views with pagination enabled\n```shell\nrails g bootstrap:install --pagination\n```\n\nGenerate bootstrap views with slim and using simple_form\n```shell\nrails g bootstrap:install --template_engine=slim --simpleform\n```\n\nGenerate bootstrap scaffolds, devise views, while using simpleform, metatags, and slim template engine.\n```shell\n rails g bootstrap:install --devise --simpleform --metatags --template_engine=slim\n```\n### Extras\n\n* If you like to use the [meta-tags](https://github.com/kpumuk/meta-tags) gem to add page titles based on the views.\n* Pagination defaults to using [Pagy](https://github.com/ddnexus/pagy) on the index pages.\n* With [simple_form](https://github.com/plataformatec/simple_form) it is assumed your have already run the simple_form generator for displaying bootstrap based components.\n  ```shell\n  rails generate simple_form:install --bootstrap\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarellel%2Fbootstrap_views_generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftarellel%2Fbootstrap_views_generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarellel%2Fbootstrap_views_generator/lists"}