top 8 ruby on rails gems

11
Top 8 Most Useful Tools for a Rails Developer

Upload: tiago-martins

Post on 01-Dec-2014

928 views

Category:

Software


2 download

DESCRIPTION

Top 8 Most Useful Gems for a Rails Developer

TRANSCRIPT

Page 1: Top 8 Ruby on Rails Gems

Top 8 Most Useful Tools for a Rails Developer

Page 2: Top 8 Ruby on Rails Gems

In this slideshow I’ll show you my top 8 gem preferences to speed up your development workflow

Page 3: Top 8 Ruby on Rails Gems

1. DeviseFlexible and most complete user authentication solution

https://github.com/plataformatec/devise

What’s it for:If you want your web app to have the ability for users to sign up and sign in.

How hard is it to implement:gem ‘devise’rails generate devise:install rails generate devise user

VERY EASY

Page 4: Top 8 Ruby on Rails Gems

2. Simple FormEasiest way to build forms and add client side validation

https://github.com/plataformatec/simple_form

What’s it for:Rails forms can give you some trouble implementing. Simple form makes the whole process dead simple

How hard is it to implement:gem ‘simple_form’rails generate simple_form:install

VERY EASY

Page 5: Top 8 Ruby on Rails Gems

3. BootstrapEasily add beautiful responsive design to your app

https://github.com/seyhunak/twitter-bootstrap-rails

What’s it for:Make your website beautiful and responsive takes a lot of skill. Bootstrap gives you ready made classes to make your app beautiful.How hard is it to implement:gem ‘twitter-bootstrap-rails’rails generate bootstrap:install static

EASY

Page 6: Top 8 Ruby on Rails Gems

4. Rails AdminInstantly add an administration panel to your rails app

https://github.com/sferik/rails_admin

What’s it for:Building your own custom admin panel takes a long time and it can be challenging. Use this for instant gratification!

How hard is it to implement:gem ‘rails_admin’rails generate rails_admin:install

MEDIUM

Rails Admin

provide namespace for your routes

Page 7: Top 8 Ruby on Rails Gems

5. PaperclipEasy file attachment handling

https://github.com/thoughtbot/paperclip

What’s it for:Let’s say you want your users to upload their own profile pictures or any other attachment. This gem provides awesome helpers to achieve just that!How hard is it to implement:gem “paperclip”, “~> 4.2”add the following to the user model:

MEDIUM

Paperclip

has_attached_file :avatarrails generate paperclip user avatar

Page 8: Top 8 Ruby on Rails Gems

6. CancanOut of the box authorisation library

https://github.com/ryanb/cancan

What’s it for:Sometimes you want create different levels of access to different users. This gem provides you a set tools to limit how users access data around your app.How hard is it to implement:gem “cancan”rails g cancan:ability

HARD

CanCan

create ability classdefine abilities in views and controllers

Page 9: Top 8 Ruby on Rails Gems

7. Sunspot SolrBetter search with auto-indexing

https://github.com/sunspot/sunspot

What’s it for:You can do search procedures using Ruby on Rails’s core libraries. But take it to the next level and use a fast and production ready setup to let yours users search.How hard is it to implement:gem “sunspot_rails”rails g sunspot_rails:install

HARD

Sunspot Solr

bundle exec rake sunspot:solr:start

& gem “sunspot_solr”

Page 10: Top 8 Ruby on Rails Gems

8. StripeEasy Credit Card Payments out of the Box

https://www.stripe.com

What’s it for:At some point you will want to charge your wonderful users for your service. Stripe makes it dead simple to make it happen with their beautiful api.How hard is it to implement:gem “stripe”embed their own beautiful popup form

HARD

create a transactions controller

Page 11: Top 8 Ruby on Rails Gems