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.
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. https://projectr.io
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: https://mkdev.me/en/posts/not-the-full-truth-about-decorators
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. http://www.techoalien.com/2015/07/location-autocomplete-and-geocoding-rails.html
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 http://naturaily.com/blog/post/ruby-on-rails-implementation-of-a-ranking-system-using-postgresql-window-functions
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
Changes in Rails 5
Changes in Rails 5 http://www.techoalien.com/2015/06/changes-in-rails-5.html Blog will highlight some cool features of Rails 5
Rails: Signing out from devices
A brief tutorial on how to allow an authenticated user to sign out from devices by invalidating logins. [more inside]
Ruby Memoization using Singleton Method
A new and most efficient way of Ruby Memoization: http://www.techoalien.com/2016/10/ruby-memoization-using-singleton-method.html
Tracking SQL queries in Rails
This post shows you how sql_tracker gem works, and its features that may help you to track and analyze SQL queries: http://stevenyue.com/blogs/tracking-sql-queries-in-rails/
Planet Jekyll's Static Website Showcase Update - Ten New Sites (Incl. Source)
Hello, I’ve updated the Planet Jekyll’s Showcase for the world’s greatest static websites with ten new sites (incl. source). Did you know? Riding Rails Weblog, Ruby Language, Yarn Package Manager, Travis Foundation, Docker: Welcome to the Docs, Elixir School, Swift Weekly Brief, “csv,conf,v2”, Climate Treaty Texts from Paris COP21, Raw Funk Maharishi are built with… Jekyll. Any site missing? Add your site. Happy Jekylling. Cheers.
Overcoming Primitive Obsession
Ruby primitives are so powerful that we use them everywhere in our code, even when we shouldn’t. https://blog.dnsimple.com/2016/10/overcoming-primitive-obsession/
Are service objects enough?
Recently I tried to find my perfect approach for service objects, how to call them, what to return from them and how to organize them. You can read me thoughts here: http://blog.ragnarson.com/2016/10/19/are-service-objects-enough.html
On requests processing with Puma and Unicorn. Yet another introduction for newcomers.
A post describing basic differences between servers, focusing on multi-process single/multi thread approaches. Can be found here
Smart support of ElasticSearch indexes with Chewy and Capistrano deployment
Capistrano::Chewy gem allows to manage and continuously rebuild (reset) ElasticSearch indexes with Chewy and Capistrano v3 on the remote servers. It adds automatic conditionally reset for only modified Chewy indexes so the developer do not have to build them manually. Moreover, it adds the possibility of manual index management with the base Chewy tasks.
3 rules of a good pull request comment
Briefly: be descriptive, add the “why” part and be polite. For more on this — “The 3 rules”
Snapshot & Backup ElasticSearch documents and indices on GCE.
Ever needed to backup / snapshot Elastic Search Document to Google Compute. If yes, read through the blog to know how https://mewerain.blogspot.in/2016/10/elasticsearch-snapshot-and-backup-onto.html