Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

railsboot

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

railsboot

  • 0.2.0
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

Railsboot

Railsboot is an implementation of the famous Bootstrap CSS framework using Rails View Components.

CI Gem Version

Preview

You'll find detailed information on how to use Railsboot on https://railsbootui.com

Installation

Add railsboot to your Gemfile and run bundle install:

bundle add railsboot && bundle install

Also make ensure that you have correctly setup bootstrap in your Rails app. Otherwise the bootstrap styles and js files will not work.

Usage

Each view component can be rendered with either a standard component call

<%= render Railsboot::BadgeComponent.new { "My badge"} %>

or with the integrated component helper

<%= railsboot_badge { "My badge"} %>

Configuration

Several view components ensure a valid bootstrap theme color scheme, so if you tweaked or enhanced the standard bootstrap volor palette, you should also add this to the gem. Create an initializer (in config/initializers/railsboot.rb):

# defaults to ["primary", "secondary", "success", "danger", "warning", "info", "light", "dark"]
Railsboot.colors = ["primary", "secondary", "my-color"]

Development

Download the source code and run

  1. bundle install for instaling the dev dependencies
  2. bundle exec rake test for running the test

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 24 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc