All Projects → decioferreira → Bootstrap Generators

decioferreira / Bootstrap Generators

Licence: mit
Bootstrap-generators provides Twitter Bootstrap generators for Rails

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Bootstrap Generators

Railstrap
RailStrap is a HTML5 Ruby On Rails 4 Ruby 2.0.0 bootstrap
Stars: ✭ 365 (+2.82%)
Mutual labels:  rails, twitter-bootstrap
Rack Dev Mark
Show dev mark on development env
Stars: ✭ 350 (-1.41%)
Mutual labels:  rails
Envied
Ensures presence and type of your app's ENV-variables (mirror)
Stars: ✭ 327 (-7.89%)
Mutual labels:  rails
Api.rss
RSS as RESTful. This service allows you to transform RSS feed into an awesome API.
Stars: ✭ 340 (-4.23%)
Mutual labels:  rails
Log analyzer
Rails logs analyzer (see how fast your views are rendering)
Stars: ✭ 333 (-6.2%)
Mutual labels:  rails
Tomatoes
Pomodoro Technique® online time tracker
Stars: ✭ 344 (-3.1%)
Mutual labels:  rails
Racecar
Racecar: a simple framework for Kafka consumers in Ruby
Stars: ✭ 327 (-7.89%)
Mutual labels:  rails
App perf
Open source application performance monitoring tool with emphasis on ease of setup and use. Providing similar functionality like NewRelic/AppNeta/Skylight etc.
Stars: ✭ 353 (-0.56%)
Mutual labels:  rails
Reports kit
Beautiful, interactive charts and tables for Ruby on Rails
Stars: ✭ 349 (-1.69%)
Mutual labels:  rails
Spree i18n
I18n translation files for Spree Commerce.
Stars: ✭ 338 (-4.79%)
Mutual labels:  rails
Anycable Rails
AnyCable Rails integration
Stars: ✭ 338 (-4.79%)
Mutual labels:  rails
Homeland
🎪 An open source forum/community system based on Rails, developed based on Ruby China.
Stars: ✭ 3,511 (+889.01%)
Mutual labels:  rails
Commit Watcher
Find interesting and potentially hazardous commits in git projects
Stars: ✭ 345 (-2.82%)
Mutual labels:  rails
Navigasmic
Navigasmic: Semantic navigation for Rails using simple view level or configuration definitions.
Stars: ✭ 327 (-7.89%)
Mutual labels:  rails
Rails performance
Monitor performance of you Rails applications
Stars: ✭ 345 (-2.82%)
Mutual labels:  rails
Ahoy
Simple, powerful, first-party analytics for Rails
Stars: ✭ 3,478 (+879.72%)
Mutual labels:  rails
Lamby
Simple Rails & AWS Lambda Integration 🐑🛤
Stars: ✭ 336 (-5.35%)
Mutual labels:  rails
Bootstrap Multiselect
JQuery multiselect plugin based on Twitter Bootstrap.
Stars: ✭ 3,507 (+887.89%)
Mutual labels:  twitter-bootstrap
Migration data
Safely migrate data in ActiveRecord migrations and keep them up to date.
Stars: ✭ 354 (-0.28%)
Mutual labels:  rails
Algoliasearch Rails
AlgoliaSearch integration to your favorite ORM
Stars: ✭ 352 (-0.85%)
Mutual labels:  rails

Bootstrap Generators

Build Status

Bootstrap-generators provides Twitter Bootstrap generators for Rails 4 (supported Rails >= 3.1). Bootstrap is a toolkit from Twitter designed to kickstart development of webapps and sites.

Current Twitter Bootstrap version

The current supported version of Twitter Bootstrap is 3.3.4.

Installing Gem

In your Gemfile, add this line:

gem 'bootstrap-generators', '~> 3.3.4'

Or you can install from latest build:

gem 'bootstrap-generators', git: 'git://github.com/decioferreira/bootstrap-generators.git'

Run bundle install:

bundle install

Generators

Get started:

rails generate bootstrap:install

To overwrite files that already exist, pass the --force (-f) option.

Once you've done that, any time you generate a controller or scaffold, you'll get Bootstrap templates.

Give it a try

In Rails >= 4.1 you need to run spring stop so than Rails preloader knows about new templates.

rails generate scaffold post title body:text published:boolean

You can easily customize colors, grid system, fonts, and much more by editing bootstrap-variables.[less|scss] on your application assets folder.

Usage

To print the options and usage run the command rails generate bootstrap:install --help

Usage:
  rails generate bootstrap:install [options]

Options:
  -e, [--template-engine=TEMPLATE_ENGINE]          # Indicates when to generate template engine
                                                   # Default: erb
  -se, [--stylesheet-engine=STYLESHEET_ENGINE]     # Indicates when to generate stylesheet engine
                                                   # Default: scss
      [--skip-turbolinks], [--no-skip-turbolinks]  # Indicates when to generate skip turbolinks

Runtime options:
  -f, [--force]                    # Overwrite files that already exist
  -p, [--pretend], [--no-pretend]  # Run but do not make any changes
  -q, [--quiet], [--no-quiet]      # Suppress status output
  -s, [--skip], [--no-skip]        # Skip files that already exist

Copy BootstrapGenerators default files

Options

Template engines

Supported template engines:

  • ERB
  • Haml
  • Slim
Haml

Add the dependency on your Gemfile:

gem 'haml-rails'

And then run:

rails generate bootstrap:install --template-engine=haml
Slim

Add the dependency on your Gemfile:

gem 'slim-rails'

And then run:

rails generate bootstrap:install --template-engine=slim

Stylesheet engines

Supported stylesheet engines:

  • CSS
  • SCSS
  • LESS
SCSS

Make sure you have sass-rails dependency on your Gemfile:

gem 'sass-rails'

And then run:

rails generate bootstrap:install --stylesheet-engine=scss

Now you can customize the look and feel of Bootstrap.

LESS

Add the dependency on your Gemfile:

gem 'therubyracer', platforms: :ruby
gem 'less-rails'

And then run:

rails generate bootstrap:install --stylesheet-engine=less

Now you can customize the look and feel of Bootstrap.

Skip turbolinks

Run the generator with option --skip-turbolinks to remove turbolinks references from the generated layout.

Assets

Customize and extend Bootstrap

If you select LESS or SCSS as your stylesheet engine, you will get an app/assets/stylesheets/bootstrap-variables.[less|scss] file with all of the default variables of Bootstrap. This way you can customize the look and feel of Bootstrap without having to download any extra file.

Javascript

Select all jQuery plugins (app/assets/javascripts/bootstrap.js)

//= require bootstrap

Or quickly add only the necessary javascript (Transitions: required for any animation; Popovers: requires Tooltips)

//= require bootstrap/collapse
//= require bootstrap/modal
//= require bootstrap/button
//= require bootstrap/affix
//= require bootstrap/tab
//= require bootstrap/alert
//= require bootstrap/transition
//= require bootstrap/tooltip
//= require bootstrap/popover
//= require bootstrap/scrollspy
//= require bootstrap/dropdown
//= require bootstrap/carousel

Customizing Templates

In Rails 3.0 and above, generators don’t just look in the source root for templates, they also search for templates in other paths. And one of them is lib/templates.

Since Bootstrap Generators installs its templates under lib/templates, you can go and customize them.

Update Bootstrap Version

To update the version of Bootstrap on this Gem you can run the following command:

rake bootstrap:update

There might be some manual changes needed after running this command. But most of the process is automatic.

Credits

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].