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.
Local DNS server and testing email delivery
How to run local DNS server with RubyDNS and test email delivery.
Prevent Accidental Coupling in Rails
This article explains how code can be accidentally coupled to the Rails framework, and why this is something developers should try to avoid. [more inside]
Test your code in isolation with Spectus!
A short article about testing, trying to throw light on the so famous random order option, unsupported by the Spectus library: [more inside]
Know Your Sidekiq Testing Rights
Sidekiq is a background job processor for Ruby that’s relied on by thousands of Rails apps. It provides a few options for testing your workers which Parker Selbert has a look at.
Making Bottomless Hash Ruby Gem
After creating Bottomless Ruby Hash class last time and writing tests for it, the next logical step is to make a Gem out of it. [more inside]
Ruby 2.2.3 Bignum Basics
Ruby 2.2.3 Bignum methods such as remainder, fdiv, conversion to different base using to_s and bit_length is covered in this video
How We Use Packer In Amazon's Cloud
Running in the “cloud” is not only a buzzworthy term, but also it can lead to real financial savings for your company and an increase in the happiness of your devops. Like all things, you have to do it correctly. [more inside]
Elasticsearch Video Series
You can now check out our video series showing you how to use elasticsearch with Rails. We will continue to add videos so don’t forget to bookmark it! Elasticsearch Videos
[Lesson #1] 11 simple steps to teach yourself Ruby & Rails faster
In this 11-part email course, I’ll teach you how to use Rapid Skill Acquisition (RSA) techniques to teach yourself Ruby & Rails fundamentals faster than your friends. Lesson #1 is an overview of RSA principles and how it shortens the time it takes to acquire new skills.
Ruby 2.2.3 Enumerator Basics : Part 3
Ruby 2.2.3 Enumerator methods such as with_object and feed is covered in this video
The Three Basic Rules for a Good Design
The birthday greetings kata is used to illustrate the three basic rules of good design. Read it here
Dear package, give git tags to your versions
While some package managers do it right, others don’t really integrate with VCS. Rubygems is no exception. Read more
Validating Uniqueness Of Field(s) In Accepts_nested_attributes_for
Uniqueness Validation with accepts_nested_attributes_for that takes into account those record which are marked for deletion http://solidfoundationwebdev.com/posts/validating-uniqueness-of-field-s-in-accepts_nested_attributes_for-accounting-for-those-marked-for-destruction
Potential Ruby friendly solutions to deal with UK marketplace payment scheme type
For an upcoming project, we had to research how to achieve a marketplace distributed payment scheme. Unfortunately, the sellers target being UK centric, it drastically reduced the solutions scope. Have a read and let us know if we forgot anything
fedux.org – Give away mock-up of a middleman website
Given you’re a professional website designer and would like to work on some wonderful project. This project might be about designing a new website with a blog and a shop for one of your favourite customers. To get involved in this project, she asked you to design a mock-up with your ideas first and send it to her. In this article I’m going to show you how you can give away your mock-up in an easy manner without setting up a full-blown web server stack. If you like my writing and don’t want to miss any new article, you may want to follow me on Twitter or subscribe to the news feed of my site.
Ruby 2.2.3 Binding Basics
Ruby 2.2.3 Binding basics such as binding, using binding with eval, local_variables, local_variable_set and local_variable_get. Watch it here
Effectively Debugging Capybara Feature Specs
Capybara/Selenium feature specs can be one of the most frustrating types of tests. There is a lot of unexpected behavior and many pieces to keep in mind. Code runs in separate threads, and both AJAX behavior and Capybara find methods create timing issues. The aim of this post is to describe a workflow that makes debugging more efficient. Effectively Debugging Capybara Feature Specs
Enhancing Logs With Cache Timing
Enhancing logs with custom timings illuminates where render time is really being spent. Learn how to use instrumentation to augment your production logs.
Bottomless Ruby Hash
The other day somebody asked if there is a way to blindly assign nested values to Ruby Hash without creating each key. Turns out there is, and it has an interesting side-effect. Welcome bottomless hash. [more inside]
All questions answered about Cross-Site Request Forgery in Rails
Here are the answers to most Rails CSRF questions, including “what’s the difference between protect_from_forgery with: :null_session and :reset_session”.
Customizable, simple text tokenization gem.
Textoken extracts words/tokens from a given text. It can be used for Web Crawling, Natural Language Processing and in many fields. You can find github repo in this link.
How to Write Smoke Tests for an Ember Rails Stack
Learn how to run smoke tests when writing an app using the Ember Rails stack in this article.
Single Purpose Principle
Learn the basics, avoid the confusion, recognize when you are violating the Single Purpose Principle here
Setting Up Log File Rotation using only Ruby code for Rails
I made a short video on how to do log file rotation inside your Rails app. https://www.youtube.com/watch?v=Hgc6LGZMMXY
Understanding and Extending Rails Form Helpers
Helpers in rails are meant to clean up view code by allowing you to extract data processing logic from your markup code. By moving the logic out, you get an added benefit, you can test your “view logic” easier. Read more