RubyFlow The Ruby and Rails community linklog

×

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

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

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.

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]

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.

The Business Tip DHH Gave me Last Night

A dream, and a business tip that DHH gave me last night.

Hmm… I think there is something weird about posting something somebody said an…
@timcae yeah, sorry about that. Will keep in mind if it ever happens again. Hop…
In my dream Oscar told me he secretly prefers Python to Ruby ;-)

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.

where exactly this would help in general.. btw glad to see your contribution to…
@jagdish.. i was working with paper_trail plugin recently..it stores an objec…

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]

Thanks for writing this, you’ve explained everything in a very clear way. …
Loading older posts