All Projects → Fullscreen → Bh

Fullscreen / Bh

Licence: mit
Bootstrap Helpers for Ruby

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Bh

Tabler Rubygem
Rubygem for https://tabler.github.io
Stars: ✭ 77 (-90.77%)
Mutual labels:  rails, gem, bootstrap
X Editable Rails
Edit fields easily with X-Editable helper
Stars: ✭ 159 (-80.94%)
Mutual labels:  rails, bootstrap, bootstrap3
Octicons
A scalable set of icons handcrafted with <3 by GitHub
Stars: ✭ 7,039 (+744%)
Mutual labels:  rails, gem
Ajsf
Angular JSON Schema Form
Stars: ✭ 266 (-68.11%)
Mutual labels:  bootstrap, bootstrap3
Milia
Easy multi-tenanting for Rails5 (or Rails4) + Devise
Stars: ✭ 326 (-60.91%)
Mutual labels:  rails, gem
Arctic admin
Responsive Theme for ActiveAdmin
Stars: ✭ 201 (-75.9%)
Mutual labels:  rails, gem
Forest Rails
🌱 Rails Liana for Forest Admin
Stars: ✭ 247 (-70.38%)
Mutual labels:  rails, gem
Pagy
🏆 The Best Pagination Ruby Gem 🥇
Stars: ✭ 3,340 (+300.48%)
Mutual labels:  rails, bootstrap
Ordinare
Ordinare sorts gems in your Gemfile alphabetically
Stars: ✭ 153 (-81.65%)
Mutual labels:  rails, gem
Bootsy
Disclaimer: this project is no longer maintained.
Stars: ✭ 455 (-45.44%)
Mutual labels:  rails, bootstrap
Devise masquerade
Extension for devise, enable login as functionality. Add link to the masquerade_path(resource) and use it.
Stars: ✭ 380 (-54.44%)
Mutual labels:  rails, gem
Motion
Reactive frontend UI components for Rails in pure Ruby
Stars: ✭ 498 (-40.29%)
Mutual labels:  rails, gem
Flexirest
Flexirest - The really flexible REST API client for Ruby
Stars: ✭ 188 (-77.46%)
Mutual labels:  rails, gem
Ruby2 Rails4 Bootstrap Heroku
A starter application based on Ruby 2.4, Rails 4.2 and Bootstrap for Sass 3, deployable on Heroku
Stars: ✭ 181 (-78.3%)
Mutual labels:  rails, bootstrap
Ci Adminlte
CodeIgniter 3.1.10 with AdminLTE 2.3.11
Stars: ✭ 259 (-68.94%)
Mutual labels:  bootstrap, bootstrap3
Material icons
A simple Rails wrapper for Google Material Icons
Stars: ✭ 266 (-68.11%)
Mutual labels:  rails, gem
Yt
The reliable YouTube API Ruby client
Stars: ✭ 674 (-19.18%)
Mutual labels:  rails, gem
Rails sortable
Easy drag & drop sorting with persisting the arranged order for rails
Stars: ✭ 127 (-84.77%)
Mutual labels:  rails, gem
Spina
Spina CMS
Stars: ✭ 1,926 (+130.94%)
Mutual labels:  rails, gem
Algoliasearch Rails
AlgoliaSearch integration to your favorite ORM
Stars: ✭ 352 (-57.79%)
Mutual labels:  rails, gem

Bh · Bootstrap Helpers

A set of Ruby helpers that streamlines the use of Bootstrap 3 components in HTML views.

The full documentation is available at rubydoc.info.

Build Status Coverage Status Dependency Status Code Climate Online docs Gem Version

Bootstrap 3 is a great framework, but requires many lines of HTML code even for simple components. For instance, you need to write the following HTML to show a dismissible alert:

<div class="alert alert-info alert-dismissible" role="alert">
  <button type="button" class="close" data-dismiss="alert">
    <span aria-hidden="true">&times;</span>
    <span class="sr-only">Close</span>
  </button>
  You accepted the Terms of service.
</div>

Writing this for every dismissible alert is cumbersome, repetitive, and prone to errors.

With Bh, you can achieve the same result with just one line of code:

<%= alert_box 'You accepted the Terms of service.', dismissible: true %>

alert_box is only one of the helpers provided by Bh. The other ones are: bootstrap_css, bootstrap_js, bootstrap_theme_css, button_to, button, dropdown, font_awesome_css, form_for, icon, modal, navbar, nav, panel_row, panel and progress_bar.

How to install

Bh is compatible with Rails 3.2, Rails 4, Padrino and Middleman.

To include the Bh gem in your project:

  1. Add gem 'bh', '~> 1.3' to the Gemfile file of your Rails, Padrino or Middleman project.
  2. Only if you are using Middleman: open config.rb and add activate :bh.
  3. Only if you are using Padrino: open app.rb and add register Bh.

That’s all! From now on, you will be able to use any Bh helper in your views.

A comprehensive guide to Bh helpers

All the helpers available in Bh are detailed on the Bh homepage:

Bh homepage

Please proceed to http://fullscreen.github.io/bh for more details and examples on how to use Bh.

How to try it in your browser

The examples folder includes three sample apps that you can rapidly run in your browser and edit as you please, in order to visually appreciate the result of Bh.

If you’d like to run the test Rails app:

  1. Download the source code
  2. cd into the examples/rails folder
  3. Run bundle install
  4. Run bundle exec rails server
  5. Point your browser to http://0.0.0.0:3000

If you prefer to see the helpers inside a test Middleman app:

  1. Download the source code
  2. cd into the examples/middleman folder
  3. Run bundle install
  4. Run bundle exec middleman
  5. Point your browser to http://0.0.0.0:4567

If you prefer to see the helpers inside a test Padrino app:

  1. Download the source code
  2. cd into the examples/padrino folder
  3. Run bundle install
  4. Run bundle padrino start
  5. Point your browser to http://0.0.0.0:3000

How to update

Bh strictly follows Semantic Versioning. By indicating the version number in the '~> major.minor' format in your Gemfile, you are guaranteed that that your project won’t break when you bundle update to a new version.

Whenever a new version is released, the CHANGELOG file will include a description of what features have changed and how to upgrade your code, if necessary.

The full history of Bh versions is also available.

To stay updated with the latest releases, to receive code examples, implementation details and announcements, please consider subscribing to the Bh mailing list:

Bh mailing list

How to release new versions

If you are a manager of this project, remember to upgrade the Bh gem whenever a new feature is added or a bug gets fixed.

Make sure all the tests are passing on Travis CI, document the changes in CHANGELOG.md and README.md, bump the version, then run

rake release

Remember that the bh gem follows Semantic Versioning.

Any new release that makes backward-compatible bug fixes should bump the patch version (1.1.x).

Any new release that adds backward-compatible features should bump the minor version (1.x.0).

Any new version that breaks compatibility should bump the major version (2.0.0)

How to contribute

Bh needs your support!

If you find that a method is missing, fork the project, add the missing code, write the appropriate tests, then submit a pull request, and it will gladly be merged!

To run the tests, simply type bundle exec rspec on the command line.

Don’t hesitate to send code pull requests through GitHub and to spread the love. And don’t click here! Thanks! :)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].