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.
Introduction to loops with ruby continuations
I just wrote a simple introduction to ruby continuations, specifically using them in loops.
Introduction to loops with ruby continuations
I just wrote a simple introduction to ruby continuations, specifically using them in loops.
Keep track of complex models with Annotate
I just released a screencast called Keeping with Annotate that talks about how to use the Annotate gem to automatically comment attributes in your Rails models.
Seeding Database for Teatro staging
How to use SQL dumps for stages on Teatro http://blog.teatro.io/approaches-to-seeding-database-for-teatro-staging/
Ruby Queue Pop with Timeout
How to Ruby queue pop with timeout without using ruby Timeout, or running it in a separate thread and tossing in an exception when you want to stop.
Classes to Procs to Blocks
Blocks can sometimes lead to a mix of concerns when you’ve got a block bigger than a few lines. There is a way around this though, which I’m going to show you through in this episode. [more inside]
Inch CI - The first month
I recently launched a web service based on Inch and now I wrote about the first month of Inch CI. [more inside]
rack-dev-mark 0.6.0 Release!
I just released rack-dev-mark 0.6.0. Now you can see the deployment revision and time on the tooltip of the dev-mark as well as the environment name!
Delayed::Cron::Job released
Delayed::Cron::Job is an extension to Delayed::Job that allows you to set cron expressions for your jobs to run repeatedly.
Awesome Ruby
A collection of awesome Ruby libraries, tools, frameworks and software. Do you miss any interesting link or section? Check it here. The goal is to build a well-structured collection, up to date and community-driven.
Multiple Sidekiq processes for multiple Rails/Sinatra applications – namespacing
Blog post about Sidekiq. How to use it with multiple apps on the same server: Multiple Sidekiq processes for multiple Rails/Sinatra applications – namespacing
Kata 1.6.1 Released
Do you practice your ruby coding skills? Have you heard about code katas before? This popular gem has helped many improve their coding skills by solving the pain points around making code katas a regular habit. The new addition is that it now also supports Node and PHP. Have a look at the wiki for complete information on what the gem provides and how to use it to improve your ruby programming skills. Also check out the companion code katas project if you want to contribute.
Lita::Ext, extensions to improve development workflow with Lita
Lita::Ext is an opinionated collection of Lita extensions to make organizing and developing your chat bot easier. Check out the full announcement for details!
Rails migration files generate into corresponding modular directories
In a Ruby on Rails project, all migration files generate into the same directory db/migrate. It’s enough for simple projects, but not that good for large modulized projects. It is inconvenient to review thousands of files in the same directory for one project. [more inside]
Rails and the Warped Asset Pipeline
To most Rails developers, just starting or otherwise, the Asset Pipeline is like the magical warp pipe in a certain 8-bit – and its many incarnations – video game most of us grew up with. [more inside]
Build a Custom Query with AREL - Codemy
We show you how you can build a custom query using AREL in this video tutorial.
Stop rails from swallowing after_commit exceptions
Fun fact: rails just swallows exceptions in after_commit hooks, never to be seen again … fix it via gem or monkeypatch
Method visibility in ruby
Want to know about method visibility works in ruby (private public protected), some interesting corner cases and ruby 2.1 related updates? Then read this blog post :)
Search engine like fulltext queries for ActiveRecord via attr_searchable
In case you want to add fulltext (mysql/postgres) query support to your models and you don’t want to install additional search engine servers, check out attr_searchable: https://github.com/mrkamel/attr_searchable [more inside]
How to Debug Rails in the Context of Your App
I wrote a blog post about how to bring in Ruby gems or Rails source code together with your app to do some debugging. Digging into source code really shouldn’t be difficult.. Check it out here! [more inside]
Goal! Detecting the most important World Cup moments in Twitter
A simple strategy to detect spikes in Tweets and how to create a bell that rings at each goal using Raspberry Pi. Check it out
Why does refactoring make code simpler?
Last week, I wrote about methods with consistent return values, and how they’ll make your code simpler. But how does that happen? Why does the right refactoring make your code easier to work with? What makes good abstraction good, and bad abstraction bad? I mean, you can’t just blindly rearrange your code and end up with quality software. If you can learn why these techniques work, you’ll be better able to understand where your code needs help. And you’ll be able to use the right tools where they matter the most.
How to create digital clock using Ruby Shoes
I’ve created step by step guide to creating digital clock in Ruby Shoes.
Ruby blocks precedence
Carlos Antonio talks about the precedence difference between the curly braces {...} and the do...end Ruby’s blocks notations, and how that subject even generated an issue in Rails issues tracker. [more inside]
What are my goto set of Gems?
Everyone has their goto list of gems when they start a new project. Here’s a look at my standard Gemfile for new projects