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.
Ruby on Rails: Scaling your App for Rapid Growth
How much Ruby on Rails can achieve for the rapid growth of your applications. http://www.railscarma.com/blog/technical-articles/ruby-rails-scaling-app-rapid-growth/
tty-spinner v0.3.0
Latest tty-spinner release brings couple new calls, namely, run for automatic animation while executing block and update for creating list of successive tasks. Enjoy!
40% Off Pragmatic Bookshelf eBooks
Pragmatic Bookshelf gives 40% off all ebooks with code XMASJULY2016 July 14 through July 17. They have lots of Ruby and Rails books, including my own Ruby Performance Optimization book.
Building a two way chat app with ActionCable and SMS
Today we’re going to have a look at building a customer service chat app on top of Action Cable and the Nexmo SMS API.
Writing a Shell in 25 Lines of Ruby Code
Learn how a shell works & how you can write one in 25 lines of Ruby code http://www.blackbytes.info/2016/07/writing-a-shell-in-ruby/
Active Record - brief introduction for beginners
When creating an app in Ruby on Rails you’re going to use Active Record methods. Lots of them, and frankly speaking, it’s good to know them well. Here you can find some useful examples of AR methods, which are good to be familiar with.
Consistent coding style with house_style v1.1
The house_style gem, which enables you to use a common set of coding style rules across multiple Ruby and/or Rails projects, has been updated to version 1.1. https://rubygems.org/gems/house_style [more inside]
Rails 5 allows passing record being validated to error message generator
The post about how to pass current record object with error message http://blog.bigbinary.com/2016/07/13/rails-5-allows-passing-record-to-error-message-generator.html
Exception Notification v4.2.0
v4.2.0 has just been released, supporting Rails 5. Go get it while it’s still hot! https://rubygems.org/gems/exception_notification/versions/4.2.0
Getting started with multi-tenancy on Rails
“I’ve already searched the whole internet, but I am stumped on how to get SaaS right.” Are you finding yourself in this position right now? Want to take on that SaaS contract but not sure if you can do it? Well, you can!
Faster PostgreSQL Searches With Trigrams
Struggling with slow Postgres fuzzy string matches and don’t want to go all-in on full-text search? Enter trigrams: a PostgreSQL extension providing simple fuzzy string matching. Greg Navis shares how to add Trigrams to your Rails app.
Step-By-Step Guide to Building Your First Ruby Gem
Nowadays all the functionalities in Rails are built as Ruby gems. For example we can use devise gem for the authentication part of the application. It’s like a package or library that is written in Ruby programming language. Moreover it can be imported and used… read more
Shrine meets Transloadit
I’ve recently released shrine-transloadit, a Transloadit integration for the Shrine file upload library. I wrote a post explaining the motivation.
Improving Rails Scalability with Better Architecture
Improving background jobs performance and memory consumption on Rails apps. A simple step-by-step example of how to make better background jobs. Check it out here
Essentials of Cache Expiration in Rails
Learn the essentials of cache expiration in Rails, and see how fundamental cache key composition is to a performant cache http://sorentwo.com/2016/07/11/essentials-of-cache-expiration-in-rails.html
[Screencast] ActionCable - Part 1 - Configuration and Basics
A walkthrough on configuring ActionCable with Rails 5. Learn how to configure your mount points and the basics of using ActionCable with your Rails application. https://www.driftingruby.com/episodes/actioncable-part-1-configuration-and-basics
Passing Parameters from controller to js in assets
js-namespace-rails new feature introduce into js-namespace-rails v1.0
Multi-model searching using Elasticsearch vol. 1
http://blog.ragnarson.com/2016/06/30/multi_model_searching_elasticsearch_1.html - the first post of a three-part series on using Elasticsearch to search across mutliple models.
Skip mailers while generating Rails 5 app
We can now skip Mailers while generating Rails 5 app [more inside]
Dockerize a Rails 5, Postgres, Redis, Sidekiq and Action Cable Application
http://nickjanetakis.com/blog/dockerize-a-rails-5-postgres-redis-sidekiq-action-cable-app-with-docker-compose - Learn how to install and use Docker to run a Rails 5, Postgres, Redis, Sidekiq and Action Cable app in development with Docker Compose.
Avoid cascading failures
http://blog.oogway.in/resilient-microservices/ - Slow services fail slowly. When a web service is responding slow - what are the choices to avoid cascading failures?
Rearmed v1.1.0 Released!
Adds String starts_with?, begins_with?, ends_with? aliases because the default ruby methods have an unintuitive grammar choice. Adds ActiveRecord find_or_create, reset_table, reset_auto_increment, dedupe. This library also includes an or method for Rails 4! Check it out https://github.com/westonganger/rearmed-rb