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.
use after_commit
Most developers use AR callbacks after_create/after_update/after_destroy to generate background job, expire cache, etc., but they don’t realize these callbacks are still wrapped in database transaction, they probably got unexpected errors on production servers. I wrote a post to suggest you that you should use after_commit for those callbacks that no need to execute in one transaction.
Travis CI announces Pull Request support
Travis CI just announced Pull Request support.
Canard makes role based authorization simple in your Rails app.
I just launched Canard 0.3.1. Canard adds role based authorization to your Rails applications. Extending the popular CanCan and RoleModel Rubygems Canard lets you define abilities for roles under your app directory making authorization a first class citizen in your application. Canard also adds some simple scopes for finding users based on their roles. [more inside]
Seeds, a quick and easy way to populate your db/seeds.rb file with existing data
I just launched seeds, a ruby gem for populating your db/seeds.rb file with existing data from your Models. Allows you to include Models, exclude Models, and exclude certain fields in your models from being added to the seeds.rb file.
Spree 1.1.0 Released
We’re pleased to announce that Spree 1.1.0 has been released. We’ve been hard at work the past two months getting this release ready. This is also the first Spree release to support Rails 3.2.×. All it took was 790 commits by 34 different authors (including many first-time committers.) [more inside]
OAuth with OmniAuth and Github
I blogged about how to use OAuth with OmniAuth and Github
Sleep helper for your async request tests
Small helper that we have found useful
Sadie Eachers Explained
I just wrote an article explaining how Sadie provides another data gathering optimization path via “eachers.” This follows a flurry of commits on the eacher code that fixed a number of bugs relating to multiple eachers hung on a single primer and eacher-on-eacher-provided-key/val pairs, so an upgrade is advised for early eacher adopters.
Legacy Concerns in Rails
The cats out of the bag, Ruby isn’t immune to legacy code problems. But we can make our Rails apps erosion resistant read more.
Tested CSV export in Rails 3, new take on an old problem
I needed to do a CSV export yesterday, and detailed the process from testing to exporting.You can read the complete post on wealsodocookies.
tmux Tutorial
In case you still haven’t tried tmux: this tutorial contains all information you need to start, gathered in one place - tmux Tutorial
Exhibit vs Presenter Patterns
I just published an article on the Exhibit pattern vs the Presenter pattern. The Exhibit pattern was introduced by Avdi Grimm in Objects on Rails. These two are similar in concept and structure, although vary in their use cases.
The Business Tip DHH Gave me Last Night
A dream, and a business tip that DHH gave me last night.
Rails Edge: Multiple Route Files
You can now have multiple route files in your rails [edge] app.
Ore 0.9.0 released
Released Ore 0.9.0. Ore is a flexible RubyGem project generator, supporting Git/Hg/SVN, gemspecs, gemspec.yml, rubygems-tasks, bundler, .rvmrc, RDoc, Markdown, Textile, YARD, RSpec, Test::Unit and installable templates. [more inside]
Simba v0.0.5 is released! - provide you ruby off rails bestpractice.
Simba provide you ruby off rails bestpractice.
named_emoji has been released - You can get the emoji for Mac OSX easily
I just released named_emoji. You can get the emoji for Mac OSX (Lion and Later) by name easily like NamedEmoji[:smile]. The emoji names are from Emoji cheat sheet.
My first look at mruby (with code)
Just posted my first look at mruby with a practical overview, and a naive benchmark.
rubygems-tasks 0.2.0
rubygems-tasks are agnostic and unobtrusive Rake tasks for building, installing and releasing Ruby Gems. rubygems-tasks are compatible with plain .gemspec files, support Git/Mercurial/SVN, PGP signed tags, package checksums, PGP signed packages, a console task and ANSI coloured output! [more inside]
Difference 1.0.0 Released
I just launched difference to compare 2 activerecord objects. Feel free to download and contribute to it. Hope you find it useful.
New in Rails Edge: Queue
I’m launching a new rails edge series, here’s the first article: [more inside]
Find Your Rails Partials Easily
Trying to find partials in a huge Rails codebase can be annoying. This makes it easy: gem install way [more inside]
Adding UTF-8 support to IRB or Pry
I have wrote a blog post explaining how to add UTF-8 support to IRB or PRY compiling it through Ruby Build.
Quiet Assets Help You to Have Little Log
A little article about quiet_assets gem and why it’s really usefull.
Intro Sadie and Olsen
About a week ago, I posted about Sadie, a construct for optimized data access and analysis, and Olsen, a simple reporter that makes it easy to produce typeset reports (among other data products) using a framework of very manageable data primers and a powerful templating system that marries ruby’s erb templates with sadie’s data access api. [more inside]