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.
How to debug stuck Ruby processes
Some thoughts and useful script from New Relic’s RPM on how to debug stuck Ruby processes
Ruby’s Exception vs StandardError: What’s the difference?
http://blog.honeybadger.io/ruby-exception-vs-standarderror-whats-the-difference
Decouple logic from Rails controllers with Pseudo Resources
I wrote a blog post about decoupling non-resourceful controllers from their complicated logic by introducing a pseudo resource.
Extracting configuration in Ruby application
Read the post here The gem is called app_configuration. I created this gem because in several Rails applications I had the problem of configuring third party services and I could not set sensitive information in the environment files. If you are doing this you shouldn’t. The major issue with setting sensitive information in the environment files is that (unless you don’t use any kind of VCS) you are versioning it.
Ruby Waterfall
A way to chain ruby services and commands.
Practical Object Oriented Design in Ruby Book Review
Read why I rate this book as 3 out of 5 stars : Practical Object Oriented Design in Ruby Book Review
Version 0.1.2 of Dynaspan has been released!
Dynaspan is an in place text editing solution for Rails with AJAX substituting text to an input field. Unlike other in place text editing solutions this is designed to support Rails forms with nested attributes. This gem does all the heavy lifting allowing you to write a simple method call to do all the work for you. It includes extra features such as JavaScript hooks, and complete options customization. A sample demonstration is available on the JS Fiddle link on the github repo.
Implementing Singleton pattern in Ruby
Presenting couple of ways to implement this pattern in Ruby. Check it out here.
Opalist Newsletter - Issue #4
Opalist is an e-mail newsletter showcasing the latest news and tutorials in the Opal (Ruby-to-JS source compiler) ecosystem and cutting-edge front-end development. In our fourth issue, we cover a bunch of news in the world of Opal gems as well as a great screencast showing how to build highly-interactive apps via Volt.
Ruby Hash default_proc
A quick post about the Hash default_proc. What is it good for, a quick trick and a caveat! Read it here
Don't "Use" Protected Methods in Ruby
I’ve just published an article on protected methods in Ruby. In this article, I discuss a proper usage of protected methods and try to shed some light on when they’re appropriate via an easy-to-understand example.
acts_as_localized: When Globalize is an overkill
Super simple way to handle translations for AR Models Read more
InfraRuby 3.7 statically typed Ruby compiler released!
InfraRuby is a compiler and runtime for statically typed Ruby.
Getting started with AlchemyCMS
AlchemyCMS looks like the perfect CMS in terms of it’s architecture and flexibility. It’s the best way to give your users freedom of changing page content while keeping everything under control in terms of structure and design. You don’t have to worry about your users messing up the view because they’re lacking the technical skills to write proper html/css. Read more
JSON Schema Basics
Learn about the basics of JSON Schema and how to validate data using JSON Schema.
Rails’ HashWithIndifferentAccess
Rails offers a less error prone Hash collection type along with added some additional methods for convenience.
Top 6 Ruby Links for the week May 21, 2015
Top 6 Ruby Links for the week May 21, 2015.
One more useful abstraction for Rails - My take on Form objects
Just wrote a blog post about Form objects on rails, please enjoy:
How to simplify Active Record scopes that reference other models
I wrote a post about how I’ve been simplifying my Active Record scopes that reference other models.
An introduction to Swift for Ruby Developers
In this article I outline several interesting features of Swift and compare them with the equivalent features in Ruby.
RocketConf Amsterdam - Call for Proposals
RocketConf Amsterdam is a three day conference for modern web developers and dev ops. The call for proposals is open now! Also, there are a few early bird tickets left. Read more at http://www.rocketconf.eu
Episode 3: Understanding Volt Views and Tags
This week’s screencast is a quick overview of how views, tags and controllers relate to each other in the Volt framework. I build a very simple card guessing game that exposes most of Volt’s view layer features.