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.
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. [more inside]
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. [more inside]
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. [more inside]
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. [more inside]
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. [more inside]
TheRole 2.3 released
TheRole - Semantic, Flexible, Lightweight authorization Gem for Rails 4 with administrative interface.
Localization in Rails
Everyone knows about our lovely I18n gem. It does its job well and almost everyone are happy. Everyone, except those, who need to implement an app with multilingual resources. There are not many gems out there, that will help you to add a support for several languages with no additional troubles. [more inside]
A Deeper Look at Ruby's Enumerable - Part 1 (each_cons, all?, none?, any?)
Have you ever needed to load a VERY large file in ruby? No I don’t mean your 500 line rails model. I mean a several gig binary or text file. [more inside]
Using thor as rake replacement
New article on how to use thor for automating your daily routines as a programmer.
new version of `Ov` gem for create multimethods
New version of Ov gem. Now possible create multimethods for singleton class.
Reviewing Pull Requests from Vim with vim-codereview
We just released vim-codereview, a Vim plug-in written in Ruby to review Github Pull Requests from within Vim. Screencast included!