Skip to content

A simple Gem that includes everything you need to start with Rails programming! :)

License

Notifications You must be signed in to change notification settings

leonvogt/failuregem

Repository files navigation

FAILURE-GEM

This is the Repository for the Failuregem.

Failuregem aims to be a timesafer for railsapps. It includes couple of usefull Gems to start rightaway with Rails programming. Failuregem Includes following GEMs:

Installation

Add it to your Gemfile:

gem 'failuregem'

Run the following command to install it:

bundle install

Finally done!

Bootstrap

Failuregem has the newest Bootstrap version included but you still have to import it to your application.scss To do that you have to rewrite application.css to application.scss

$ mv app/assets/stylesheets/application.css app/assets/stylesheets/application.scss
// Import Bootstrap in application.scss
@import "bootstrap";

Add Bootstrap dependencies and Bootstrap to your application.js:

//= require jquery3
//= require popper
//= require bootstrap-sprockets

While bootstrap-sprockets provides individual Bootstrap components for ease of debugging, you may alternatively require the concatenated bootstrap for faster compilation:

//= require jquery3
//= require popper
//= require bootstrap

Simple-Form

Simple Form can be easily integrated to the Bootstrap. To do that you have to use the bootstrap option in the install generator, like this:

rails generate simple_form:install --bootstrap

Paperclip

For using Paperclip please use the official documentation

Font-Awesome

To include the newest Font-Awesome you have to import to your application.scss

@import "font-awesome";

Devise

To install Devise you still have to load the installer

rails generate devise:install

In the following command you will replace MODEL with the class name used for the application’s users (it’s frequently User but could also be Admin). This will create a model (if one does not exist) and configure it with the default Devise modules. The generator also configures your config/routes.rb file to point to the Devise controller.

rails generate devise MODEL

CanCanCan

To install CanCanCan you still have to load the installer

rails g cancan:ability

See Defining Abilities for details.

RailsAdmin

To install RailsAdmin you still have to load the installer

rails g rails_admin:install

Provide a namespace for the routes when asked Start a server rails s and administer your data at /admin. (if you chose default namespace: /admin)

ActiveLinkTo

For using ActiveLinkTo please use the official documentation

Now you good to go!

About

A simple Gem that includes everything you need to start with Rails programming! :)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published