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.
Fighting custom actions in Rails controllers
By now I have never seen a rails project which doesn’t have custom actions in rails controllers. And that makes me upset. Here I’m going to describe my thoughts about custom actions, why people use them, why I hate them and how to deal with them.
Usage of SQL and NoSQL Database’s in Single Rails Application
There are distinctive reasons why you should think about having various databases in your Ruby on Rails application. In my situation, I expected to store large quantities of data. Read here : Usage of SQL and NoSQL Database’s in single rails application(MySQL, PostgreSQL and MongoDB)
Rails 5 blogs and the art of story telling
Between October 31,2015 and Sep 5, 2016 we wrote 80 blogs on changes in Rails 5. This blog captures what we learned along the way.
RubyKaigi 2016 - summary
Last week I attended RubyKaigi, the most prestigious Ruby conference in the world. Find out what it was like and what went down. Read More
Microservices using Rails, HTTP & RabbitMQ
This blog post explains why sometimes microservices play very important role in some situations over the monolithic app. [more inside]
[Screencast] Authorization with Pundit
Prevent unauthorized access to your application with Pundit; an authorization library for Ruby on Rails which restricts what resources a given user is allowed to access. https://www.driftingruby.com/episodes/authorization-with-pundit
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.
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.
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