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.
Confident Ruby: A Review
My coworkers just posted our favorite parts of Avdi Grimm’s Confident Ruby.
Speed up your tests with PORO domain models
Here’s a nice blog post on speeding up tests by replacing normal “fat” models with PORO domain models. Speed up test and specs by using PORO domain models.
The Marriage of Figaro… and Rails 👰
Rails just shipped a 4.1 beta with a great new feature: secrets.yml. Learn how it compares to Figaro and other ENV-based solutions like dotenv.
5 architecture anti-patterns and solutions for large Rails apps
Moving into 2014 with learnings from a year of developing a large complex Rails-based marketplace for musicians: 5 architecture anti-patterns and solutions for large Rails apps. Enjoy!
What's new in Rails 4.1
My team mate Godfrey wrote up a nice article on what’s new in Rails 4.1.
Rails 4.1 beta1 now available
Rails 4.1 beta has been released just in time for xmas!
Decoding "Almost Sinatra"
A break-down of all the tricks used in Konstantin Haase’s “Almost Sinatra”, an ultra-golfed version of the Sinatra framework written in just 999 bytes of code.
Coverband: Backstage look at code covered in production
I just launched Coverband a Rack middleware to monitor and report production code coverage. Great at helping devs track down dead code paths.
Pronto now does spell-checking! (via Aspell)
Pronto performs quick automated code reviews with the help of various analysis tools (RuboCop, Brakeman, Flay, etc.) by checking only the introduced changes. And now it does spell checking with the help of Aspell. Could easily be used on pull request for a blog post, for example. Check it out: Pronto and Pronto spell-checking runner.
Yes, You Should Write Controller Tests!
Without proper tests you won’t be able to truly verify if your controllers are thin and well designed. Read more
Creating a simple ToDo application - Part Two
Second part of the tutorial about creating a simple ToDo application with Rails.
Testing your Rails Application in Internet Explorer
When developing a Rails application is quite common to do it using MacOS. But at some point you will probably test that your application works well in different versions of Internet Explorer. This blog post explains a way to achieve this easily.
ActiveRecord callbacks considered harmful
It is a truth, universally acknowledged, that as a Rails application grows it becomes more difficult to reason about side-effects. This post concerns one of the most common causes of confusion that I see within all but the most simple Rails applications: ActiveRecord callbacks.
On the Importance of a README
In software engineering, a big part of the communication is delivered through documentation. And on the field, nothing beats a good README. So here are my tips on writing a good README.
Fixing SJR hi-jacking's vulnerability
If you’ve read about SJR and its vulnerability, here’s a solution that I took from the JSON world and applied it to SJR payload. Read more
Optimizing NGINX TLS Time To First Byte (TTTFB)
TLS is not slow, it’s unoptimized. A hands-on tour of optimizing nginx to deliver one-RTT Time To First Byte (TTFB) with TLS.
Callbacks Extraction
Callbacks Extraction is a blog post about refactoring your models and decrease possibility of callback hell in your application.
Sinatra Cookbook - Last few days of the Kickstarter campaign
With just a few days left of the Sinatra Cookbook Kickstarter campaign, I have blogged about it. Read more
Slim in Starter Apps from the RailsApps Project
With help from Benedict Lee, we’ve improved support for Slim in Starter Apps from the RailsApps Project. Also you can choose from various versions of Bootstrap or Foundation for the front-end.
Prawn 0.13.0 Released
After a long hiatus, active development has resumed on the Prawn PDF toolkit – and we’re trying once again to make it to 1.0. For now, please give our newest release a try, and get involved with the project if you can!
Lifesaver 0.1.0 Released!
Check out the release notes and the github page. Let me know if you have any feedback. Read more
Rails + CoffeeScript + Jquery – Marking multiply objects for destruction at a time (frontend)
Sometimes it’s hard to figure out simple things. This post is exactly about this: how to mark multiply nested objects for destruction in Rails forms using CoffeeScript and Jquery filter method.
Useful gems that work well with rails 4
There are many great gems available for rails 4. This article lists a few of the really useful gems and supplies a Gemfile that is ready to go. Read more
TheRole 2.3 released
TheRole - Semantic, Flexible, Lightweight authorization Gem for Rails 4 with administrative interface.