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 Beginner's Guide to Crafting Ruby Gems
In this blog post I recall the time when I first started creating my own ruby gems and I show the workflow and what to be careful about as a beginner [more inside]
Understanding Reactive Programming with RxRuby
Reactive Programming is a relatively new and interesting programming paradigm that has picked up quite a bit of popularity lately. Out of curiosity, I did a bit of reasearch over the weekend. In this blog post I will summarize what I learned and try to explain what RP to any novice out there.
Kafka for Rubyists - Part 2
Part 2 of my two part intro to Apache Kafka and how to use it in your next Ruby project: http://www.markphelps.me/2016/01/17/kafka-for-rubyists-2.html [more inside]
Pragmater 1.0.0 -- shebang/pragma formatter
With the release of Ruby 2.3.0, support for frozen strings are now supported via a pragma comment. This gem provides an easy way to add pragma comments to single or multiple Ruby source files in order to benefit from improved memory and concurrency performance. While a useful tool for dealing with frozen strings, it can be used for any type of pragma comment. See README for details. Enjoy!
Wye Tech News #7
A new issue of our weekly compilation of interesting news and articles about Ruby, Rails, JavaScript and web development related stuff that we found during the week.
any_login gem allowing you to login as any user
Did you had a chance to check this gem https://github.com/igorkasyanchuk/any_login ? Very useful in development.
File Uploads: Asynchronous World
I wrote about the importance of making file uploads asynchronous, and compared existing libraries (CarrierWave, Paperclip, Dragonfly, Refile and Shrine) for their support of backgrounding and direct uploads.
Using Omniauth to Authenticate your Users
Omniauth is one such great gem which allows you to easily integrate Social authentication providers, including Facebook, Google, Twitter and GitHub for your Ruby on Rails web application. Check out the steps below to learn on how to integrate these authentication providers into your app. Read more at RailsCarma’s Blog
Looking for Ruby Book Reviewers
I have completed Essential Ruby Kindle book. I am looking for technical reviewers. I will mention your name in the book. If you are interested, please contact me at bparanj@gmail.com or https://www.rubyplus.com/contact
Useful delegation patterns for Rails
An exploration into the delegation pattern and how it can be useful in various aspects of a Rails application: https://lorefnon.me/2016/01/16/useful-delegation-patterns-for-rails.html
Testing Rails Routing Constraints
Recently I’ve rolled my own user authentication mechanism with omniauth and omniauth-identity. In this post, I’m exploring Rails routing constraints and how to test them: https://medium.com/@clupprich/testing-rails-routing-constraints-be1641217914
Raise and Rescue
Learn how Raise and Rescue works in Ruby. Tips included: how error handling shows clear intent, overriding raise, and defining your own error handler.
I Love Ruby updated
Hello People, I have updated my Ruby book I Love Ruby. Please get it here https://cloud.openmailbox.org/index.php/s/u4sX065QRgjbJL2/download [more inside]
Digging in to Enumerable
In this blog post, I peer under the hood of Enumerable for a deeper understanding. [more inside]
Pastel gets x6 faster! with new CLI
pastel core methods for decorating have been rewritten to provide 6x performance boost, and 3x boost when used with DSL. New features include ability to undecorate a colored string and lookup defined color names. Finally, pastel gets new shiny executable pastel-cli.
The pitch for mruby
In this post we’ll learn about what mruby is, where it fits, and why I believe it will play a big role in the future of Ruby. [read more]
A gem for rescuing unique constraints
The team at Reverb put together a tiny gem that rescues unique constraint failures on the model and turns them into regular model errors. Download the gem, or read more.
Paperclip Apply Processor If Condition
How to only apply processors if a condition is met in Ruby with the Paperclip Gem. http://solidfoundationwebdev.com/blog/posts/paperclip-apply-processor-if-condition
JSON formatted logger
Mostly to be able to analyze them, I’m having all my logs written in JSON format. [more inside]
Sharing code in FactoryGirl
Sharing code between factories in FactoryGirl takes a little bit of effort. Here’s one way of accomplishing it, which I patched together.
Upload image to S3 using Carrierwave on Rails 4
In this artile, I’ll show you step by step how to upload image to S3 using Carrierwave on Rails. http://goo.gl/H1pSNR
Rack::JSONP::Utils
These two little middlewares will help you to support JSONP in your Rails API app. One of them will transform your response body into the callback text expected by your JSONP javascript request. The other will overwrite the request method of your Rails app. [more inside]