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.
Functional programming in Ruby - Part 2
Do you remember the first part of FP in Ruby? Here comes the second one!
Extracting Configuration in Ruby Application
Hi! Today I’m going to present you a little gem that I extracted after solving the same problem over and over again in Rails. But it can also be used in any Ruby application. The gem is called app_configuration… Learn more here
Top 6 Ruby Links for June 4, 2015
Here is a list of Ruby links that I would like to read and use as a reference: Top 6 Ruby Links for June 4, 2015
Working with exceptions in Pry
Pry has some cool features for working with exceptions in development. http://blog.honeybadger.io/working-with-exceptions-in-pry/
PDF Email Attachments with Paperclip and wicked_pdf
A brief tutorial on using Paperclip to attach PDFs (generated by wicked_pdf) to emails
EmailHunter
A tiny ruby wrapper around Email Hunter API (https://emailhunter.co/) Read more
How to reformat CSV files with Kiba ETL?
I just pushed out a fairly detailed hands-on article explaining how to completely remap a CSV file generated by a French system into an US one, using Kiba ETL. Read more
Idiosyncratic Ruby: Episode 29-31
…and here are the final three idiosyncratic episodes: Grammar edge cases, a regex char class cheatsheet and reasons to still use Ruby. There is also a new overview page to browse all episodes. Thank you for all the great feedback!
A refactoring exercise for fun and profit
An exercise where I refactor an existing real world piece of code - just for fun - and hopefully you and I profit (learn) from.
Algorithmic fun with Ruby's hashes
using Hashes to model and solve common logic problems
Our Path to Services in Rails - Part I
Here’s new post on Our Path to Services in Rails - Part I. Hope you enjoy!
3 ways to configure your Ruby API wrappers
When you use Ruby to wrap an API, you have to have a way to configure it. Maybe the wrapper needs a username and secret key, or maybe just a host. There are a few different ways you could handle this. So which one should you choose?
Benchmarking Ruby dispatch strategies
Ever wonder how send and other kinds of dynamic method dispatch stack up, performance wise? I did some benchmarking.
Using online user detection to orchestrate in-app and email notifications
Often I get twice the same notification: one in the app, and another by email. This article shows a simple way to avoid notification overload, using Pusher and SendGrid:
Streaming data with ActionController::Live
Example of using ActionController::Live for real-time data streaming. -
Empty? vs blank? vs any? – why you should not use any? to test if there’s anything in
Any? is not always the best solution. Especially when you use it wrong and work with big a arrays. You can check why here: Empty? vs blank? vs any? – why you should not use any? to test if there’s anything in
Pair with Dan Mayer
Share experiences and results from our #pairwithme session
Free coupons to TDD in Ruby course
Enjoy free coupons to TDD in Ruby Beginner Course. More than 100 FB likes and 5 star reviews from genuine students.
Practicing Ruby Contributors Fund
Please back this Kickstarter to help me bring ten new contributed works to Practicing Ruby. 100% of the funds will go to the contributors, and each contributor will also be given five days of my time to help with editing, research, etc. Read more
New "Ruby on Rails 4.2 for Autodidacts" Book
The Kindle version of my new “Ruby on Rails 4.2 for Autodidacts” book is online. It covers Ruby 2.2 and Rails 4.2.
Apply the Basics of Ruby Object Model
Developing Chico : A Sinatra Clone
Query mongdb using hash or Json
We just released mongoid_hash_query which is the little brother of ActiveHashRelation gem. Read more
High level Rails testing using Capybara and Minitest
Here’s a short blog post about how to get started with writing high level acceptance tests in Rails using Capybara and Minitest.