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.
Tutorial: Hangman on ruby on rails on foundation on fontawesome
Just published a tutorial for implementing the Hangman game using Rails 4, Foundation grid and FontAwesome.
Understanding Bundler's setup process
How does Bundler make sure that your code can see just the dependencies that are in the Gemfile and nothing else? Let’s look into Bundler’s code to find out.
Building intention revealing Ruby on Rails helpers
I wrote about building intention revealing helpers in Rails on http://teotti.com/building-intention-revealing-ruby-on-rails-helpers/
Minitest with Watir-webdriver
A look at an actual browser running through your minitest tests. http://6ftdan.com/allyourdev/2015/02/21/minitest-with-watir-webdriver/
Why doesn't my code work outside of Rails?
Have you received the NoMethodError exception? Here I discuss monkey-patching in Rails, what Rails has monkey-patched, and more.
Some Basic Ruby Tools for Sniffing out Errors
When you are searching out your codes state and need to experiment; it helps to have the right tools. http://6ftdan.com/allyourdev/2015/02/20/some-basic-ruby-tools-for-sniffing-out-errors/
Announcing Stoplight, a circuit breaker gem
I am proud to announce the first stable release of Stoplight! It’s like traffic control for your code. Stoplight implements the circuit breaker design pattern in Ruby. Use it to gracefully handle things that occasionally fail. [more inside]
Gem of the Week #8 - rails-erd gem - generate ER diagrams for ActiveRecord models
Hello, Over at the Planet Ruby the Gem of the Week series continues. #8 is the rails-erd gem that lets you generate entity-relationship diagrams (ERD) for your ActiveRecord models. Works not just for Rails but for “plain vanilla” ActiveRecord models too. Cheers.
Using the Registry Pattern in Rails
The Registry pattern is a way to look up collaborator objects without hardcoding their class names and initialization in the calling code. Here’s a way to apply this pattern in Rails.
Different Methods for Merging Ruby Hashes
A quick look at the performance/implications of merging hashes in Ruby
Set Intersection in Ruby
Set Intersection in Ruby is a post explaining what set intersection is and how to perform it using Ruby arrays or the Set object.
Following the Life of an HTTP Request in Rails
Ever wondered how an HTTP request goes from your webserver to the code in your Rails’ stack? Racked with guilt for not knowing Rack? In this series of annotations, we follow the route of a simple HTTP GET request through the Rails source, from the Application to the controller code.
A Glimpse at Tail Call Recursion
Writing more elegant code with methods that call themselves. http://6ftdan.com/allyourdev/2015/02/18/a-glimpse-at-tail-call-recursion/
Rpush now supports MongoDB.
Rpush, The push notification service for Ruby now supports MongoDB as a data store.
Programatically getting batch status in Sidekiq Pro
A quick way to get batch status in Sidekiq Pro in bulk.
Easily set up a Rails VPS with Ruby 2.2.0 and Puma
Hosting your own Rails app with a VPS has never been easier. This two-part tutorial first guides you through configuring an Ubuntu 14.04 VPS with Ruby 2.2.0, then demonstrates deploying a Rails app with capistrano and Puma.
Put Your Models on a Diet
Would you like to have models which look more attractive? I wrote a short blog post about making models slimmer by getting rid of unnecessary responsibility to have more object oriented code. Read more here »
Starting my journey with Volt
Is Volt a good alternative to Rails? [more inside]
MailChimp and Active Job - adding users to your mailing list in the background
Oh, how easy and portable background jobs have become! Check out this tutorial for a common use case that has been streamlined in Rails 4.2.
How I use Pronto to help with code reviews
I’ve been experimenting with Pronto to automate some of the low-level aspects of code review and code quality assurance. Here’s what I’ve found and liked so far.
Regression Tests, Rspec and Rails
The need of regression tests in rails and rspec is discussed in this blog post: http://coding-is-art.com/regression-tests-rspec-and-rails/