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:
- Bootstrap
- Jquery-rails
- Simple-Form
- Paperclip
- Devise
- Devise CAS
- Font-Awesome-Rails
- RailsAdmin
- Active_link_to
Add it to your Gemfile:
gem 'failuregem'
Run the following command to install it:
bundle install
Finally done!
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 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
For using Paperclip please use the official documentation
To include the newest Font-Awesome you have to import to your application.scss
@import "font-awesome";
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
To install CanCanCan you still have to load the installer
rails g cancan:ability
See Defining Abilities for details.
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)
For using ActiveLinkTo please use the official documentation