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.
Basics of TDD in Rails
This is a 15 part article series on how to do TDD in a Rails project. First article is about Setup
Ruby Hooks
Hooks provide leverage for whenever change occurs which allows you to execute code for each event. Find out more: http://6ftdan.com/allyourdev/2015/03/20/hooks/
Presenting DeviceDetector, a precise and fast user agent parser and device detector
DeviceDetector is a precise and fast user agent parser and device detector written in Ruby, backed by the largest and most up-to-date user agent database. [more inside]
Monetize open source software with hosting
I’ve written about how businesses, individual developers and technical firms use open source software as a low cost marketing strategy to gain expose, then use other monetization strategies to profit from their work. This time I’m sharing some examples of how you can monetize open source with hosting
Why feature testing is important
Here’s my story on how I ran away from bug nests to enter Behavioral-Driven Development and realised that it will be hard for me to live without feature testing. Do you test features in your apps? Why/why not? [more inside]
How to effectively monitor and resolve flaky rspec tests
If you have randomly failing rspec tests you might want to read the workflow I am using to identify and monitor my tests http://teotti.com/a-process-to-identify-and-monitor-inconsistently-failing-automated-tests/
A Closer Look at Test Spies
When we use a test spy in our unit tests instead of a mock object, we make some tradeoffs. This article explores our decisions.
Intercity CLI: One command to manage Rails servers
I’ve been putting some effort into creating a command line tool that lets you manage your Rails server or VPS. Today I’m happy to release a first version: Read more on this page + usage sample of Intercity CLI.
ChronoLogger logging is 1.5x faster than ruby's stdlib Logger
Last month I published a post explaining what chrono_logger’s logging faster than stdlib logger. ChronoLogger’s interface is mostly same stdlib Logger’s, so it’s easy to replace from Logger. See also github repository.
Fun with underscores, ampersands and asterisks
Variable assignment in Ruby is flexible. It allows you to do helpful things and once you realize that function calls are not much different (internally they are of course) from variable assignments, it becomes much easier and the code becomes clearer. Read the article
Getting started with RSpec
Developers new to TDD or BDD often don’t know what to read in order to learn RSpec. So I wrote an article that starts from the idea behind the BDD, how to set up RSpec on a new Ruby project and explains its basic features that you need to know to get started. Read the article.
Voice based phone verification using Twilio in Rails
Just wrote a blog on voice based phone verification using Twilio in Rails http://blog.bigbinary.com/2015/03/18/voice-based-phone-verification-using-twilio.html
Tool for generating usable Puppet Facts based on FQDN format
FqdnFacts is a ruby based DSL library I created to make it easier to create dynamic facts based on a predefined set of FQDN formats. Hopefully someone else will find this as useful as I do.
How To Add jQuery and Ajax To Your Rails 4 App
Wondering how to get started adding JavaScript to your Rails 4 app? In this 20-minute video tutorial we look at how to add some effects with jQuery and send Ajax requests.
gem install eigenclass
Eigenclasses aka metaclasses or singleton classes in Ruby: https://github.com/shuber/eigenclass
A new Article Series for Ruby/Rails Developers – Join the Nuts & Bolts List
I wrote a few Ruby/Rails articles over the last couple of months and want to extend this. That’s why I created a Nuts & Bolts area where I’ll publish about 2 articles a month. [more inside]
How Rails sessions work
Sessions in Rails are easy to use, but they can seem a little magical. How does Rails know to show the right data to the right person? And how do you decide where to keep your session data?
Transactional Fixtures in Rails
You may or may not be aware that this feature exists.
Building football league data model with Rails and Neo4j
Hey, just wrote new article about using Neo4j in conjunction with Rails. http://blog.diatomenterprises.com/rails-and-neo4j/
Netzke got an update: Rails 4.2 and Ext JS 5.1
Netzke found a sponsor and is now up-to-date with latest Rails and Ext JS: http://writelesscode.com/blog/2015/03/18/netzke-got-an-update-rails-4-2-and-ext-js-5-1/
Upgrading a project to the latest Ruby on Rails version
Every time you start a new Ruby on Rails project, you use the latest stable released version. It doesn’t take long, until you can’t upgrade your project to a new Rails version. Why does this happen? How can you avoid this trap? This article will give you some hints.
Neural Networks with the NMatrix gem
See how handwritten digits can be recognized by a Neural Network implemented in Ruby.