The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
How to Build a Gem to Share your Rake Tasks
The ultimate in DRYing your projects. Move all shared rake tasks into a gem. It’s simple and keeps rake tasks you use across multiple projects up to date with your latest and most preferred settings. [more inside]
I'm not testing those stupid views!
Rails views can evolve into a complex mix of HTML and Ruby conditionals. Avoid writing complex tests by keeping views stupid:
How To Make Devise Use Custom Scopes Or Conditions When Querying Users
This article describes setting up a custom scope for Devise login.
Routes & Controllers, the Rails Way
A little bit of discipline goes a long way to keep your routes and controllers simple. Here’s a round up of simple techniques that can have huge impact on keeping things lean:
Helpy 1.0 is out today!
Super excited to announce the 1.0 version of Helpy, the new open source Rails based helpdesk and customer support app. Big thanks to everyone who has contributed code and 19 foreign languages. Full list of new stuff at
Ruby Facets #4
In this new episode of Ruby Facets, we talk about Ruby Together and RubyGems.org, Concerning Concerns, Procodile, and Swift. All in six lovely little minutes.
[Screencast] Rails API - Authentication with JWT
Using the knock gem, we will add JWT Authentication to our Rails API Application. https://www.driftingruby.com/episodes/rails-api-authentication-with-jwt
How to add database constraint validation for table
It is not a secret, that even having validations in Ruby on Rails application models through checking the uniqueness, two separate, but identical objects, can be saved to the database. This happens in services within subsequently full of users, which can simultaneously connect to the common database and write two similar records at the same time. To avoid such coincidences and to provide yourself with this kind of errors, I decided to look for methods at ruby gems communities.
How to create a Ruby Gem
RubyGems or “gem” is a package manager for the Ruby programming language that provides a standard format for distributing Ruby programs and libraries. It is easy to manage and install to your system and it can be used by various rails applications. Just Checkout how to create a new gem and how to publish it.
Some Ruby Tricks to Make Your Life Easier
I give a brief rundown on where and how I run into problems that need solving as well as a few tricks and cool things you can do with Ruby to figure out what’s going on. [more inside]
Git basic tutorial and Github printable cheatsheet, workflow and markdown cheats
Git basic tutorial and Github printable cheatsheet, workflow and markdown cheats.
Useful GitHub Tool
We developed a magic app, that helps you to keep clean your GitHub repository and rebase branches. Also, it notifies you, if your branch has any conflicts. You can set “auto rebase” and the app will automatically do rebase.
Not the full truth about decorators
We will continue to speak about patterns in a good code! Gem draper is not a decorator! And cells too. Ivan Shamatov, the mentor, will tell you what a true decorator is in his new article. With real-life examples written in Ruby which will be very useful in your Ruby On Rails applications:
Polymorphic Association in Rails 5
Checkout the latest video that shows how to use polymorphic association in Rails 5
Rails 5 Base Application
I’ve assembled a base Rails 5 application with search, a simple public and layout for everyone’s benefit. Some other features: ready to deploy to Heroku, Google Analytics and AWS ready to go with simple environment variable configuration. There’s much more that I’ll document and improve upon soon. [more inside]
Planet Jekyll's Static Website Showcase Update II - Ten More New Sites (Incl. Source)
Hello, I’ve updated the Planet Jekyll’s Showcase for the world’s greatest static websites with ten more new sites (incl. source). Did you know? 1) Markdown Tutorial - Lessons for Writers 2) Brick: Google Web Fonts Alternative 3) Font Library: Over 800 Google Fonts, Let’s Organize Them! 4) Hyde Press Bookshelf: Free Books about Jekyll ‘n’ Friends 5) World Classics Bookshelf - The World’s Greatest (Literature) Books in .txt 6) Zen of Book Designs / Epsilon (Franklin) Theme 7) Bootstrap Expo - Beautiful and inspiring uses of Bootstrap 8) Static Map Maker - Bing, Google, Mapbox, ‘n’ More 9) Postgres Guide - Guide to the world’s most advanced open source database 10) Octopod - Podcast publishing extension for Jekyll ++ are built with… Jekyll. Any site missing? Add your site. Happy Jekylling. Cheers.
Location Autocomplete and Geocoding using Google APIs in Rails
Location Autocomplete and Geocoding using Google APIs in Rails.
Modeling Postgres Common Table Expressions and Window Functions with Rails and Active
Find how to use table expressions window functions to ensure correct results for lat-lon searches within Rails. [more inside]
Keight.rb 0.3.0 -- Jet-speed framework for Ruby
Keight.rb 0.3.0 released, a very fast web application framework for Ruby. It runs about 100 times faster than Rails, and 20 times faster than Sinatra. I’m sorry this release breaks backward-compatibilty in some points. See changes and readme for details.
Thredded v0.7.0
Thredded, the best Rails forums engine, has just released v0.7.0. This is a major release that adds configurable ordering of topics and topic list display and enhancements to moderation UI (from version v0.6+). Check out the live demo at thredded.org. [more inside]
Go Full Stack Rails - The Backend
In this series of blog posts, I walk the reader through building a raw and real full-stack application with Rails and ES6, from beginning to end. We already have part 1 and part 2, which describe the full backend code of the chosen example application.
Ranking implementation using Postgres window function in Ruby on Rails app
Here is quick and simple approach for implementing ranking functionality in RoR app with PostgreSQL database
Tuts+ Article: How to Create and Publish a Jekyll Theme Gem by David Darnes
Hello, Happy Birthday Jekyll! Celebrating 8 years. What’s News? Starting with v3.3 you can build ‘n’ use Gem-Packaged Themes. See the Tuts+ Article: How to Create and Publish a Jekyll Theme Gem by David Darnes. PS: I’ve started an Awesome Jekyll (Gem-Packaged) Themes page / collection. New themes include: Minima, Swiss, Athena, Leonids, Garth, and more. You’re more than welcome to add your theme. Happy Jekylling! PS: To get started with Minima - the built-in theme on GitHub Pages, see Hello, Minima!.
Active Admin
Admin section is a common module for most of the applications. For Rails applications we have a gem called Active Admin. That can be used to create application from scratch to admin interfaces with little effort. Checkout the installation, Authentication & Customization of Active Admin