dwayne.fm

Rails Gems To Consider

October 01, 2019

Hello Neighbor. I will add lovely little gems that I find to aide in productivity in Rails development. For now, these are the gems I feel are worth endorsing.

Better Errors (friggin LOVING this gem!)

Site: https://rubygems.org/gems/better_errors
Github: https://github.com/BetterErrors/better_errors
Usage: https://youtu.be/9-IaaUZZkRc
Better Errors replaces the standard Rails error page with a much better and more useful error page. It is also usable outside of Rails in any Rack app as Rack middleware.


Rpsec for Rails (Because, tests.)

Site: https://rubygems.org/gems/rspec-rails
Github: https://github.com/rspec/rspec-rails
Usage: https://youtu.be/71eKcNxwxVY
rspec-rails brings the RSpec testing framework to Ruby on Rails as a drop-in alternative to its default testing framework, Minitest.


Active Admin

Site: https://activeadmin.info/
Github: https://github.com/activeadmin/activeadmin
Usage: https://www.youtube.com/watch?v=NJYtzznKrg0
Active Admin is a Ruby on Rails plugin for generating administration style interfaces. It abstracts common business application patterns to make it simple for developers to implement beautiful and elegant interfaces with very little effort.


Pry-Byebug

Site: https://docs.gitlab.com/ee/development/pry_debugging.html
Github: https://github.com/deivid-rodriguez/pry-byebug
Usage: https://www.youtube.com/watch?v=C_YMdNwv2fA
Adds step-by-step debugging and stack navigation capabilities to pry using byebug. byebug has a very similar interface as gdb, but byebug does not use the powerful Pry REPL. binding.pry uses Pry, but lacks some of the byebug features. GitLab uses the pry-byebug gem. This gem brings some capabilities byebug to binding.pry. so using that, will give you the most debugging powers.


DEVISE

Github: https://github.com/plataformatec/devise
Wiki: https://github.com/plataformatec/devise/wiki
Usage: https://www.youtube.com/watch?v=zJYuLebl-Js

Devise is a flexible authentication solution for Rails based on Warden. It: Is Rack based; Is a complete MVC solution based on Rails engines; Allows you to have multiple models signed in at the same time; Is based on a modularity concept: use only what you really need.


AHOY

Github: https://github.com/ankane/ahoy
Usage: https://www.youtube.com/watch?v=nJRupUjyO08
Track visits and events in Ruby, JavaScript, and native apps. Data is stored in your database by default so you can easily combine it with other data.


CANCANCAN

Site: https://rubygems.org/search?utf8=%E2%9C%93&query=cancancan
Github: https://github.com/CanCanCommunity/cancancan
Usage: https://youtu.be/VcUjOMR0kyY
CanCanCan is an authorization library for Ruby >= 2.2.0 and Ruby on Rails >= 4.2 which restricts what resources a given user is allowed to access.


Simple Form

Site: http://simple-form-bootstrap.plataformatec.com.br
Usage: https://www.youtube.com/watch?v=o0eVqNbapb0
Simple Form helps you build responsive, mobile-first HTML Forms with Simple Form and Bootstrap. The world’s most popular front-end component library meets easy and simple DSL to build Forms with Rails