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.
My Giant List of Ruby Questions
This is my workflow (to date) for learning Ruby. Ruby Questions My goal is to have a mastery over both Ruby and the Rails framework. Previously I have felt “OK” with both the Ruby language and Rails framework, but I am not a heavy hitter with either. My workflow has been to read the books listed below creating questions based on what I felt was important material. Much of it I knew but just wanted it documented so I can review the language every few months or so. Much of it comes in and out of memory depending on the current program I am developing. [more inside]
Multiple Ruby Version Support on Heroku
Heroku has long advocated having a strong parity between development and production environments, now you can run the same Ruby version in your production app that you used to develop it. [more inside]
Ruby Under a Microscope
I just published one chapter from my upcoming Ruby internals eBook, called Ruby Under a Microscope - Learning Ruby Internals Through Experiment.
bullet 4.0.0 released (support mongoid)
bullet is designed to help you reduce the number of db queries, I just released gem bullet 4.0.0, it supports mongoid now, I also wrote a post to tell you the details.
RVM, Ubuntu & Cron - a Quick Guide
I just wrote a quick guide to using cron with Ubuntu and rake tasks with RVM. I know it’s something I’ll look at again, so hopefully some others find use for it. [more inside]
I18n alchemy - localization and parsing
Carlos Antonio from Plataformatec has finally released to the public his I18n alchemy gem: an alternative for localization and parsing of I18n data with Active Model.
My First Impressions of RubyMotion
Yet another RubyMotion first impressions post.
Principle of least surprise in your model methods
Just posted a blog post: make your methods follow the principle of least surprise
Why runtime method count is not a good complexity smell
A response to Steve Klabnik’s post on mixins (which I mostly agree with), showing how runtime method count is not a good indicator of complexity, using the standard library Enumerable module as an example
New Release of ITTIA DB SQL Offers More Choice to Embedded/Mobile Software Developers
ITTIA DB SQL version 5.4 provides features such as clustered indexes to reduce the file size for many common table definitions, scrollable SQL cursors for navigating forward and backward in a result set<\a>, a Python scripting API, Unicode SQL query strings, client/server feature enabling multiprocess and remote network access to database files, for any environment with or without operating system.
My ebook on learning how to test with RSpec is now available
A series of posts I did recently on Everyday Rails about how I learned to test Rails applications (using RSpec) gained a bit of traction, so I decided to make an extended ebook version. You can read about the details on Everyday Rails and then head over to the book’s page on Leanpub to pick up the advanced access version for $9 US. Thanks!
New RubyStack with RVM and DevKit support
BitNami RubyStack is a popular all-in-one package for everything that you need to get started with Ruby development in general and Rails in particular. It includes Apache, MySQL, SQLite, ImageMagick, Passenger, etc. [more inside]
Moped a new MongoDB ruby driver
I wrote an article about Moped a new MongoDB ruby driver.
Mixins: A refactoring anti-pattern.
I’ve often seen people say that mixins simplify their code. In my latest blog post, I demonstrate that while mixins may make things more DRY, they don’t make it more simple.
RConfig 0.4.3 Released
I just released RConfig 0.4.3! It’s the most stable version yet! Thanks to Valentin Andries and Leif Gensert for contributing bug fixes! For anyone who haven’t heard of it, check it out! It’s the best ruby app configuration library around, and it works with Rails and non-Rails applications.
Sidekiq 1.2.0 released
Sidekiq is a very fast, efficient background processor. It’s like resque except far more efficient, learn more here. One Sidekiq process can do the same amount of work as 25 Resque processes. In 1.2.0, we’ve added inline testing support and the ability to timeout misbehaving workers.
github_api for access to GitHub API v3
I’ve just released github_api gem for querying GitHub API. To get you quickly started read documentation. I hope you find it useful. You may consider using it to win github challange.
Nezumi, the mobile app for Heroku, now available for Android
Nezumi, which was previously only available for iOS, is now on Google Play.
Extending Rails asset pipeline with custom preprocessors
If you’re using Rails asset pipeline and you wish you didn’t have to add the .erb extension and <%= ... %> blocks to your asset files, check out this article: Extending asset pipeline with custom preprocessors.
Cat Factz, Rails Edition
Finally, the thought of running your own Cat Facts server no longer a dream. Meow.
Quick Tip: Firing Up Rubinius to Dig into Ruby Source
I just wrote up a quick tip on using pry and rubinius effectively for digging into ruby’s core a bit here.
jQuery plugin Role with haml support
I just released role-haml gem. It is Haml support for role jQuery plugin by @kossnocorp.
Five Common Rails Mistakes
I’ve worked with Rails for quite a while now and in that time I’ve seen a lot of Rails applications and both read and written a lot of bad Ruby code. Here’s five common mistakes that I see in almost every Rails codebase.
Rpub, a simple ePub generation library in Ruby
I wrote a Ruby gem to compile a set of markdown files into an .epub file, to scratch my own itch. It comes with default layout and styles, automatically detects images and fonts and can generate a preview document for you. It’s called Rpub and here’s my introductory blog post.