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.
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]
Everything about CPU and Wall time
DIY Ruby CPU profiling series, part II from Codemancers.
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
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
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.
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.
Ruby Conference - Erie Day of Code
Erie Day of Code is a one-day event taking for Ruby on Rails web developers, computer scientists, creatives, and overall tech enthusiasts! Through a series of talks, workshops, open discussions, and a catered lunch, we intend to teach and learn about the progression of web development and open source not only in Erie, Pennsylvania, but globally. [more inside]
At least do Regression driven tests
You want to test your code and don’t know where to start? Regression driven tests might be a good place to start.
Applying UI and UX to the command line
In this design/development mashup, I review some common UI and UX principles and explain how I applied them to Capistrano, a decidedly geeky command-line tool. The result is my recently released Airbrussh gem for beautifying Capistrano output. Take a closer look.
menu_txt - manage your site's menus in plain text
menu_txt provides a simple plain text syntax for menu trees, allowing your non-tech folks to edit your website’s menus without knowing how to write code.