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
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Here I am going to explain how to use rails_workflow gem to build complex business logic in your Rails application. I wanted to create one big tutorial but then decided to split it to several posts describing one demo application. Continue…
Process names for Ruby programs can be noisy, making it difficult to figure out exactly which process is doing what. In this post I show how you can change them to not only make them more friendly, but also display useful status information.http://blog.honeybadger.io/how-to-change-the-process-name-in-ruby-for-top-and-ps/
Taking advantage of Postgres can make a huge difference in your Rails app. Here is an article I wrote about allowing for similar searches in Postgres, using the trigram extension. Think of Google when it says “Showing results for computer” when you searched “cmputer”.
Hello, I’ve started (yet) another awesome list on Planet Ruby. The new awesome-webservers page collects Ruby web servers. Categories include: multi-threaded web server; simple single-threaded web server; async I/O, multi-plexed web server, and others. Anything missing? Contributions welcome. Cheers.
Glenn Goodrich from SitePoint shares his experience using Kiba ETL and Ruby to migrate data from MySQL to PostgreSQL. With funny pictures and jokes, too!
Ruby’s “ampersand colon” isn’t an operator. I wrote a quick blog post explaining how it works under the hood: http://blog.honeybadger.io/how-ruby-ampersand-colon-works/
Imagine a question that can be either “pending”, “approved”, or “flagged”. Some models call for this kind of data. An attribute that can have only one of a few different values, values that rarely change. Recently, Rails took a stab at solving this with ActiveRecord enums.
This is the first episode of our new BazaarJS series, dedicated to exploring the world of JS, from the point of view of a Rails developer… today we’ll be talking about build tools and task runners. Gulp, Grunt, Broccoli: why so many choices, which one is better? [more inside]
This post shows some lesser-known but super useful Hash tricks. Learn how to lazily build lookup tables, raise exceptions when hash keys aren’t present and create infinitely nested hashes. http://blog.honeybadger.io/advanced-ruby-hash-techniques/
The dynamic connectivity problem uses a graph (a data structure) that maintains information about the relationship between its components. With this information the data structure can answer whether there is a connection between two objects or not. http://davidmles.com/blog/dynamic-connectivity-ruby/
For some reason not many RoR developers know that they can extend ActiveRecord associations. This feature can be a great way to cleanup any relational code that is dependent on a parent resource. Here are few examples on how and when to use it: Extending ActiveRecord association to cleanup your associations code