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.
The Last API Wrapper: Pragmatic API wrapper framework
tlaw (The Last API Wrapper) gem allows to create reliable and discoverable API wrappers really easy. It targets “get-only” APIs (like weather, transportation, geonames and so on).
N+1 is a Rails feature
Learn why DHH calls N+1 a feature of Rails and why you may want to think twice before you reach for eager loading to squash those N+1 queries in your Rails app. https://rossta.net/blog/n+1-is-a-rails-feature.html
Top 22 Jekyll (Static Website) Themes, Latest n Newest Themes n More @ Dr. Jekyll's
Hello, I’ve updated the Dr. Jekyll’s Themes site that lists free (open source) static (web)site themes. What’s news? ++ All themes now include github stars (e.g. ★ 2907) ++ A new Top 22 themes page listing themes ranked by github stars - and the winner is … Jekyll Now by Barry Clark. ++ A new page listing the newest themes (by github repo creation date) ++ A new page listing the themes by latest updates (by github commits) [more inside]
InvoicePrinter 0.0.7 released, what do you want to see in final 0.1.0?
InvoicePrinter gets support for another image (stamp&signature) and a footnote along some other fixes. If you haven’t try it before, now is the time to try (or explore /examples) and tell me what do you think.
Ruby: Hash default value – be cautious when you use it
Default Ruby hash value can be really useful. Unfortunately, when used without deeper understanding, it can cause some trouble. In this article I describe one of the examples that at first glance behave weird.
Better File Uploads with Shrine: Uploader
In the previous post I talked about the motivation behind creating Shrine. In this post I try to explain some of Shrine’s core design decisions, and how they bring more flexibility than other file upload libraries. Read about it here.
How To Change The View Path Of A Controller In Rails
This article describes how to manipulate the views paths in your Rails app. You will see how you can use to share a view directory with another controller or switch the base view path based on some variable such as a site name for a multi-tenant app. https://solidfoundationwebdev.com/blog/posts/how-to-change-the-view-path-of-a-controller-in-rails
Making HTTP requests in Ruby
This article is all about HTTP requests. It covers which libraries are out there, how to monitor what they’re doing, and how code can be structured to encapsulate them to the outside world. [more inside]
Brakeman Pro Engine is here!
I am very excited to announce Brakeman Pro is now available as a gem. Not only can you use the Brakeman Pro Engine from the command line and as a drop-in replacement for OSS Brakeman, you can also easily add automated security coverage with the new RSpec and Minitest integrations. [more inside]
Send SMS messages like emails in Rails with Textris
Sending SMS messages in a Rails application is normally done with an API gem. In this post we investigate harnessing the power of Action Mailer to send SMS messages using the Textris gem.
Mutli-user spreadsheets with ActionCable
A screencast on Phusion’s recent Multi-user Spreadsheets tutorial using RethinkDB.
Custom lists in ruby
A simple example of how define custom lists in ruby for models used within the application. More here:
A Case for Composition
A concrete example of how composition was used and the thought process as to why. More Here
4.5 Ways to Install Ruby in Userspace
Are you a beginner in Ruby? Do you want to test it out without installing or using the easiest way? [more inside]
Passing iOS device token with turbolinks-ios
Ruby on Rails 5, Turbolinks and Turbolinks iOS are fantastic frameworks to build hybrid native apps. Here’s two options to pass the device token from iOS to Rails
Raise On Developer Mistake
When is it appropriate to raise an exception? Here, I want to focus on just one aspect of that question: using exceptions to give feedback to future developers.
Migrating from Rails to Sails: Comparison and Implementation Guide
If you plan on migrating from Rails to Sails, first let’s compare their core concepts: from their background, down to their REST implementation. [more inside]
Improving Rails test helpers
A small trick about how you can improve a test helper that comes with Rails and save some time every day. Read more
capistrano-scm-gitcopy 0.1.5 release
Capsitrano 3 copy scm - tar your git branch and deploy to your server [more inside]
Unique partial indexes with PostgreSQL
Using unique partial indexes to avoid conditional duplication can save you a lot of effort when dealing with concurrency. [more inside]
[Screencast] Two Factor Authentication
Add multi factor authentication to your existing authentication solution. This gives your users the option to increase the level of security to their account and help prevent unauthorized access. https://www.driftingruby.com/episodes/two-factor-authentication
Search Kick Gem – To Make Your Search Intelligent On Rails App
Search kick Gem is a Ruby gem that runs on top of Elastic-search and makes it easy to make searches in a Rails-friendly fashion. In addition, it allows you to add more features including analytics, autocomplete, and personalized results.