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.
Shortcode gem 0.3.0 released
Shortcode, the ruby gem for working with Wordpress style shortcodes in your ruby apps has been updated to version 0.3.0 today. New in this version (and 0.2.0 released a few of days ago), support for loading templates from strings, support for passing complex parameters through to presenters. Shortcode gem on Github.
Test and Refactor Analytix with WDD
In this epic episode we show you how to clean up the interface for our analytics system. We show you what we call “Wish Driven Development” where you decide what the domain specific language should look like or how it should work and use that as a starting point.
Writing Gems for Ruby and RubyMotion
I’ve worked out a fairly simple way to make your gems work for normal Ruby projects and RubyMotion projects. This is only a starting point, of course there is more work to be done in larger codebases, but this could let you test your core functionality separate from your delivery platforms so that you know your business logic works. [more inside]
How Thor Can Help You With Your Tests (or Integration of Parallel_tests and Cucumber)
I wrote the article which will show your thor task to prepare test database parallel, launch tests parallel and restart failing features. It can be VERY useful and handy for you, so check this article out!
MotionKit Basics and AutoLayout
MotionKit is the new kid on the block for us RubyMotion developers, providing us with a fantastic new way to handle our screen layouts. In this episode we take a look at some of the basics of creating a layout, adding styling and subviews, and laying them out on the screen using MotionKit’s fantastic AutoLayout API. [more inside]
RuLu Ruby Conference 2014
Get ready for the 4th edition of RuLu, the greatest Ruby Conference in France! [more inside]
An implementation of the State Design Pattern in Ruby.
Some preliminary code I wrote to try to make it easier to implement the State Design Pattern in Ruby. Check out the code here and you may suggest how I can improve it.
FiniteMachine 0.6.0 release!
finite_machine with better state transitions support and more stability.
shoes 4 preview released!
The first preview version of shoes 4 was just released! The project aims to bring the joy and fun of simple GUI programming in Ruby back to everyone. [more inside]
How to override default primary key in Rails?
Rails is about CoC, the convention is to use :id as the primary key. So what if you want something different as your primary key? Author Trung Lê will walk you through few simple tricks that does the justice. Read more on his blog at: [more inside]
Faraday middlewares for processing utf
I wrote a new middlewares useful for those who a lot with utf. github page
Upgrading to Rails 4.1 from Rails 4.0
I wrote a post on how to upgrade your Ruby on Rails app from Rails 4.0 to Rails 4.1. It’s not so hard as I first though it would be: Upgrading to Rails 4.1 from Rails 4.0 – Ruby on Rails.
Supercharge your VIM into IDE with CTags
CTags generates index file of all your classes, methods and all other identifiers. You can use that index in your editor to jump straight to the methods you’re interested in. In this article, I’ll show you how to use them with Vim and Rails. Continue reading
Exceptiontrap - Error Tracking & Exception Monitoring for Rails and PHP
I am the founder of Exceptiontrap, which is an easy to use, intelligent and fast error tracking service. Please try it out and send me your feedback.
Manage DigitalOcean services from your chat room with lita-digitalocean
lita-digitalocean is a new plugin for Lita, the programmable Ruby chat bot, that allows you to control the full DigitalOcean API via chat. Check out the README for the full list of supported commands.
Common mistakes in Ruby on Rails
Few common mistakes that must be avoided while developing Ruby on Rails applications. Please checkout at Ruby on Rails Blog by Allerin.
O'Reilly Programming Blog: Blocks and File.open
This will be the last post in the series for my in-depth look at Ruby blocks: Why Ruby Blocks Exist part III: Never forget to clean up again!. It shows how blocks can ensure you never have to worry about de-allocating resources like network connections and file handles. If you’re new to Ruby and struggling with blocks, this will be a good read for you.
Here is a Thread Pool!
Here’s a great reference implementation of a thread pool in Ruby and its applications.
Refactoring Tips: Don't Trust Your Unit Tests
Before you start making any changes, make sure you have an integration test covering the part of the application you’re changing. While unit tests might be useful on a small scale refactorings, they usually break if you change the layout of your code, even a little bit. This is mostly because a big portion of the unit tests will depend on the exact API of your classes, instead of their behavior. Continue reading<p>
Reading Rails - How Do Batched Queries Work?
Want to learn a little more about how ActiveRecord is implemented? I knew it! [more inside]
6 Upcoming Ruby Events You Can't Miss in 2014
A collection of 6 Upcoming Ruby Events You Can’t Miss in 2014. What would you add to the list?
A Ruby library for Tic-tac-toe
I just release version 1.0.0 of my gem for Tic-tac-toe, called xo. It’s aim is to provide a reusable implementation of Tic-tac-toe game logic. Check it out. I tried my very best to write clear code. So please don’t hesitate to tell me what you think.