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.
3 Tricks to debug Opal code from your browser
Most of the time you’ll spend debugging applications written with Opal you’ll be fine using just these three tricks.
Using guard gem in a project with multiple modules
Ania Ślimak came up with the idea of how to deal with a large number of guards in multiple modules using “chdir” option of “guard” gem. Read about it on the Lunar Logic blog.
Minispec - a new testing library that tends to be as simple and intuitive as Ruby are
Minispec uses native Ruby methods for testing:
is(a) == b
does(a).include?(b)
is(a).empty?
More examples
Fixing Fixtures
For a long time, using Rails fixtures was considered bad form, but in recent years, a lot of developers have come back around to using them. This post provides tips and practices for simplifying your fixtures and making them easier to manage.
Introduction to Conditional HTTP Caching with Rails
Often times we don’t want an HTTP client to blindly cache content that it has been given. We may not be able to rely on setting specific expiration headers either. Instead we need a way for the client to ask the server whether or not a resource has been updated. [more inside]
New from RailsApps: Stripe Checkout Example and Tutorial
Ready for a holiday side project? If you’ve got Rails 4.2, you can use Rails Composer to build a Stripe Checkout starter application that combines payment processing with Devise. Here’s the Stripe Checkout Example application. There’s also a tutorial.
Service objects in Rails - complete example
How to create a service object? How to split big services? How to handle dependency injection? Find out
String Interpolation: The Bad Parts
String interpolation in Ruby is great. It’s one of those niceties that I really miss whenever I venture into JavaScript land. But watch out! There are some lesser known “features” of Ruby’s string interpolation that can burn you… badly. Learn how.
How I sped up our Rails Test Suite by 267%
This article writes about speeding up a rails rest suite significantly by avoiding common pitfalls. This part of the series talks about cucumber improvements and using poltergeist. [more inside]
Each... or else
I love each, but I have a problem with it. How do you handle an empty collection?
Introducing Phusion Passenger 5 beta 1 (codename "Raptor")
Version 5.0.0 beta 1 of the popular Phusion Passenger app server has been released. This release is codenamed “Raptor”, is much faster, helps you better identify and solve problems, and has a ton of other improvements.
Beyond The Rails Way
Is there life beyond The Rails Way? [more inside]
Log tagging in Rails
Whilst deploying a large application to Heroku, we needed a way to trace application requests from the second they come into the router through to when the request completes. Enter log tagging.
no_querying_views 1.0.0 has been released: say no to querying views
Four years after its initial release, no_querying_views is now a gem. Querying views - views triggering DB queries - will now raise an exception !
How to get rid of legacy code
In this article you can find my 5 cents about this subject. There are 5 approaches which may help you. It is not about patterns, but it is about making decisions and architecture of an application. There is one approach which started working well for us.
Ruby Object Mapper 0.3.0
Today Ruby Object Mapper v0.3.0 was released. Here’s the official announcement.
ITTIA and E2S Equip Call Centers with Android Mobility
ITTIA DB SQL solves challenges such as merging data, efficient communication, and security, which allows Android (TM) tablets to access call center data stored in an existing relational database, such as Microsoft(R) SQL Server(R), or Oracle(R) Database. With this technology a call center can rapidly improve communication to experience significant time and cost savings through greater efficiency.
Unraveling String Key Performance in Ruby 2.2
Performance in any app is Critical. In this post on Ruby string key performance we’ll look at some optimizations you can make in your app today, and how the Ruby 2.2 interpreter will help make your code faster for free.
Ruby Book Giveaway Extravaganza
I just launched the Ruby Book Giveaway Extravaganza. Three winners, Five books, a 6 month Safari Online membership, and $50 in your name to The Ada Initiative or another tech charity of your choice. The books are: Practical Object Oriented Design in Ruby (POODR) by Sandy Metz, Clean Ruby by Jim Gay, Exceptional Ruby by Avdi Grimm<, Working with Ruby Threads by Jesse Storimer, and Mastering Modern Payments by me, Pete Keen. </ul>
Scaling Ruby on Rails by Caching Your Database Queries
I just wrote a post, how to cache database queries in memcache to boost up your application performance Read the post here and please give feedback
tty-screen v0.1.0
I’ve released tty-screen to allow for cross platform screen size detection. This is another component for tty.
Flip Flop Operator in Ruby
The flip flop operator is one of those weird features of Ruby that most people aren’t even aware of. It’s one of the many Perlisms that sneaked into Ruby, but hasn’t caught on. In this post, we will look at what flip-flop operators are, and where you can use them.
ApiView - Friggin' fast Serializer for your JSON backend
Just published ApiView as a performance focused serializer with a slim and lean code base. [more inside]
ComfortableMexicanSofa 1.12.3 is out
ComfortableMexicanSofa Rails 4 CMS Engine version bump. [more inside]
Pastel v0.4.0
Pastel allows now for detaching common style combinations, as well as for nesting of styled strings by using blocks. Please give it a try and let me know what you think!