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.
A Cheatsheet of Ruby Version Changes
I went over the changelog of every Ruby 2.x release & compiled the most important changes. http://www.blackbytes.info/ruby-version-changes/
Summary of Phoenix workshop for Rails team
Here’s how I’ve made the first step into introducing Elixir and Phoenix to our Rails development team at VIsuality. Read more on Phoenix on Rails blog.
[Screencast] ActionCable - Part 2 - More Complex Example
Extending the previous episode, we look into making a realtime poll application where users can get live feedback on voting. https://www.driftingruby.com/episodes/actioncable-part-2-more-complex-example
Partial Downloads with Enumerators and Fibers
When developing Shrine, I needed to determine the MIME type of a remote file. Since this information is written only in the beginning of the file, I wanted to avoid having to download the whole file. So I wanted to share with you how I managed to have only an arbitrary part of a remote file downloaded using net/http.
Isolate Side Effects – Functional Style in Ruby
In this article, we’ll look at what side effects are, why they are problematic despite being necessary, and how to isolate them to minimise their drawbacks.
Exception Notification v4.2.1
v4.2.1 hast just been released, fixing the webhook notifier and improving the Slack one! https://rubygems.org/gems/exception_notification/versions/4.2.1
tty-prompt v0.7.0
New version of tty-prompt allows to customise keyboard interrupt handler and fixes issue when reading keyboard key press events on OSX. Enjoy!
Technical Error in Sandi Metz Rails Conf 2016 Presentation
See how Sandi Metz commits one of the TDD beginner’s mistake in her RailsConf 2016 - Get a Whiff of This presentation.
Partial template name need not be a valid Ruby identifier in Rails 5
Always present association
Recently my colleague showed my a little trick that I found to be very useful in some situations. It’s nothing fancy or mind-blowing or unusual in terms of using Ruby. It’s just applied in a way that I haven’t seen before. It kind of even seems obvious after seeing it :) [more inside]
Rails: Working with Flash Messages (video)
We need to be able to inform our users if they are doing something wrong. This is where flash messages come in. In this episode we show you how to implement flash messages cleanly in your application.
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