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.
Test Driven Rails 4 Contact Form
I just posted How to build a Contact Form with Rails 4.2 on my site.
Stop Writing Rails Controllers
Stop writing controller code in Rails. Declare them in data.
Build a Pocket Clone: Part 3
My latest post in building a pocket clone from scratch
ActiveRecord SQLServer v4.2.0 Prerelease
Code named Kantishna for the Denali area of Alaska, the ActiveRecord SQLServer v4.2.0.pre is ready for testing. As the name suggests, this is for SQL Server 2012 and higher.
Today I Learned
thoughtbot created an open source GitHub repo this week called Today I Learned. It’s receiving lots of community submissions for tips in all programming languages, including lots of Ruby.
How to detect and block bots with NGINX
Reverb.com infrastructure engineer Adam Enger explains How to block bots with NGINX rate limiting
How to tackle with video processing with CarrierWave and streamio-FFMPEG gems.
Video encoding processor for CarrierWave, more options and background processing here.
Cleaner, safer Ruby API clients with Kleisli
I just blogged about how to build better APIs using general, simple but powerful ideas from the world of monads.
New Rails feature - ActiveModel errors details
Read about a new Rails feature ActiveModel::Errors#details
[Gem] I made a gem to build an interactive graph based on gem dependencies from your Gemfile
Please visit here . Constructive criticisms and suggestions welcome. Output is something like this
binding.repl: "binding.pry" for every ruby repl.
I released binding.repl v3.0.0 a couple of weeks ago. It can start Pry, IRB, Ripl, Ir, and rib at runtime with a single uniform interface. Example: binding.repl.irb, binding.repl.pry, etc.
Simple way to access redis connections without global variables
Here is small PooledRedis gem to manage redis conection(s) in your app.
Encryption on Rails - a Primer
Encryption on Rails - a Primer - Learn to do multi-key encryption with rotation by Reverb.com engineer Joe Kurleto.
MailInterceptor gem to intercept/forward emails in rails
MailInterceptor gem for intercepting and forwarding emails in non production Rails environments.
Ruby Forwardable deep dive
Take a deep dive into Ruby’s Forwardable library and find out how it works. I learned so much by getting familiar with this simple library so I decided to pull it apart piece by piece in my latest blog post.
Only use double-quoted strings.
I just published a post suggesting that we only use double-quoted Ruby strings. What do you think?
3 ways to monkey-patch without making a mess
When you first try Ruby, monkey patching is amazing. It makes Ruby a joy to read and write. That is, until you hit weird problems that are impossible to debug. But what’s the alternative? Waiting for blank? to make it into core Ruby before you’re allowed to have nice user input handling? How can you write monkey patches that won’t make you want to fire yourself for incompetence the next time you see them?
New lograge version
A new version of lograge 0.3.1 was released last weekend. It comes with some performance improvements, cleaned up code and more documentation.
Ruby Gem of the Week Series @ Planet Ruby - Week #1 factbook, Week #2 hoe, Week #3 slideshow
Hello, I’ve started a new Ruby Gem of the Week series (w/ web feed) that presents a new Ruby library every week on Thursday on Planet Ruby. So far the gems presented include: Week #3 - slideshow gem - a free web alternative to PowerPoint and Keynote in Ruby; Week #2 - hoe gem - build, package and publish gems with hoe rake tasks; Week #1 - factbook gem - turn the world factbook into open structured data e.g JSON – Happy Planet. Cheers. PS: Have your say! Guest posts more than welcome.
Announcing the Easy Rails Active Record Associations Video Series
In this eight part series totaling more than 75 minutes you’ll learn all about Active Record Associations. I’ll introduce you to each of the natively supported association types, including belongs_to, has_one, has_many, has_and_belongs_to_many, and has_many through, guiding you through real-world examples of each. [more inside]
Symbol GC in Ruby 2.2
What is Symbol GC in Ruby 2.2 and why should you care?
Use IMGKit to create dynamic share images for your Rails app
IMGKit is rad. You can create image files (great for sharing on social networks) and serve them from Rails just like any other dynamic view. Find out how!
Ruby and self
Ruby newcomers usually are confused about the use of self, whether it’s a completely new concept for them or not. So I wrote this post to show briefly how it works.
Hasten: A gem to speed the import of large tables into mySQL
I just released the Hasten gem. Here’s a blog post about it.