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.
Rails API Video Series
Video series with free and paid videos, focusing on building a JSON API with Rails 5.1. There are currently 26 videos and more are on their way. There is also a React Foundation series that show you how to build a client that consumes the API.
Making iOS & Android Apps with Rails & Turbolinks
Rails 5 and Turbolinks do most of the heavy lifting when you’re ready to get your MVP running in a native mobile App. This tutorial shows you how to get started. Read more
DNSimple API v2 Architecture and Hanami
The story and the technical details about the DNSimple API v2 architecture
The Ultimate Guide to Ruby Sorting
Learn how many different ways you can sort an array in Ruby. Including the quicksort algorithm!
GEM giphy_api_ruby: integrate with Giphy API easily!
giphy_api_ruby ( ) - is new gem that will let you integrate with Giphy API and it is the only ruby gem that implements all endpoints and features documented in the official Giphy documentation. I tried to create it with minimal dependency on external libraries, as a result this gem uses only native Ruby libraries, making it very lightweight. Benchmarking showed that this gem performs faster then other similar libraries, considering you are using a good JSON parser. Comes with 100% test coverage. The Readme.md will help you to get started! Thanks :)
Clojure's interpose in Ruby
I wrote a post detailing how one might open up Enumerable to implement one of Clojure’s core functions. Whether one wants to open up Enumerable is left as an exercise for the reader :)
What skills a junior Ruby on Rails developer should have?
Skill set for a junior Ruby on Rails developer should be a mix of technical and soft skills. I wrote an article explaining what I mean
Maily v0.6.0 release: Rails 5.1 and more
I just pushed a new version of Maily ( https://github.com/markets/maily ) v0.6.0, adding Rails 5.1 compatibility and some other improvements: lazy attributes to fetch data, emails description, better handling of internal exceptions, fixed assets pipeline integration and some internals cleanup. Read more
Office.TXT - The Free Writer’s Command Line Tool Suite - $ gem install officetxt
Hello, I’ve put together the world’s 1st office suite in ruby ;-) Let’s welcome Office.TXT - The Free Writer’s Command Line Tool Suite. Use $ gem install officetxt to install the all-in-one office bundle. What’s included? For now journaltxt, jekyll, drjekyll, mrhyde, octopod, m2w, rougify, kramdown, quik, and more. Anything missing? Let us know. Cheers.
[Screencast] Benchmarking and Refactoring the content_for View Helper
In a recent blog post, we looked into the content_for view helper to render breadcrumbs. Once we got the feature working, it’s time to refactor the feature to lower technical debt. https://www.driftingruby.com/episodes/benchmarking-and-refactoring-the-content_for-view-helper
JSON Web Tokens authentication in Rails API apps
Use JWT to perform user authentication in Rails 5 API apps.
[Traim] Simplify and speed up your legacy Rails API
I designed a resource-oriented RESTful API micro framework. Here it is: It is compatible with your legacy ActiveRecord models for easily turning them into JSON API. Designed for resource-oriented RESTful service without others per-request overhead makes it significantly faster than Rails-API
Scope the Monkey
Safer “monkey patching” with Ruby’s Refinements.
FileManipulator
FileManipulator can split a text formatted file into multiple files, and recover the original file by merging the splitted files.
tty-command v0.6.0 release
The newest tty-command provides new ways to redirect command input and output. You can easily redirect stdout to stderr in child process whilst preserving any output logging like so cmd.run('script...', :out => :err). Let me know what you think!
Statistics and Data Science for Rubyists
Resources for Data Science: https://github.com/arbox/data-science-with-ruby Read more
Hacking content_for to create a simple display helper
I was playing around on a side project and needed to dynamically generate breadcrumbs. However, I wanted a simple and unobtrusive way to build them within the views.
Add Output To Your Rake Tasks
Have you ever worked on an item, tested it thoroughly on a staging environment, done extra dry runs for good measure, been completely satisfied with the results, only to have it hit production and you have no idea whether it’s working properly? I had such an experience recently with a one-off rake task. The following details that, along with what I learned and how to prevent it from happening to your projects. Read more
journaltxt (jo) gem & tool - reads single-file Journal.TXT & auto-builds blog
Hello, the new journaltxt (jo) library (gem) and command line tool - reads single-file Journal.TXT - the new human multi-document format for writers - and writes out (auto-builds) a blog (w/ Jekyll posts etc.). Reinventing blogging on the internets! Single-file publishing is the new single push-button publishing ;-) See the samples/Vienna.txt source and live Vienna.TXT Blog w/ Jekyll Minima as examples. Happy writing and publishing.
Vagrant VM for Rails development (Ubuntu 16.04)
A new version of the Zen Rails Development Environment is available. It’s a Ubuntu 16.04 Vagrant VM (for Virtualbox), built for Ruby on Rails development. It comes with tools such as PostgreSQL, Selenium & ChromeDriver (to run Chrome headless with Capybara JavaScript-enabled tests), installed and configured. Useful if you are stuck in a Windows PC or want to isolate your development environment from your Mac or Linux PC.
Command Line Report 4.0.0 Released
Tired of writing command line applications full of puts statements to create a user experience or present data in the terminal window? Have you ever wanted to easily create a tabular report after your application has collected the data? Then make sure to download and get started with the latest version of the Command Line Reporter project. It provides a simple DSL to accomplish many of the tasks you want in your scripts from Progress Bars to easily formatted tables. The wiki has plenty of information to get your started and the gem is available on rubygems.org with source on github.
nil?, empty?, blank? - what's the difference actually?
In nil?, empty?, blank? in Ruby on Rails - what’s the difference actually? we dive into 3 commonly used methods to discover their similarities and differences. Many examples, some digressions and code from Rails included.
Open Source AngularJS Rails Apps
A few open source Rails apps using AngularJS, that developers can learn from or contribute to:
Versioning APIs in Rails 5 (and why you want to do it)
In this part of my ongoing series of articles on Rails 5 API apps, I’m discussing API versioning, how to do it in Rails, and why it’s a good idea.
Spreadsheet Architect v2.0.2 Released!
Spreadsheet Architect is a library that allows you to create XLSX, ODS, or CSV spreadsheets easily from ActiveRecord relations, Plain Ruby classes, or predefined data.