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.

Simple Rails 3 Login Generator

I created simple-login that is a rails 3 generator. It creates user class with signup, login, logout and password reset features. It is very simple to use and it generates routes, controller, model and view files so you can further customize. Passwords are salted and protected already.

Kata 1.1 Released

Katas are well known in the ruby community as a great way to practice the language. The kata gem provides facilities to make the practice easier. Writing a kata is as easy as writing an rspec test while taking it is a step by step process with github integration baked in. With this release you don’t have to create a new repo but instead just add the project tree to an existing one. Check it out and have a look at the code katas project for some samples to test yourself against!

directory_template gem released

I released the directory_template gem, which allows you to generate directory structures from a template, optionally processing paths (variables in the path) and contents (e.g., render ERB templates). You can write and use your own processors too (for both, path and content manipulation). This is useful if you want to template e.g. Projects, or want to build something akin to rails’ generators. The project is - of course - found on github, and the documentation is available online.

Damnit, I needed this two weeks ago :P Thanks though, will check it out! …
Rebo, If you have questions, just drop me a line, I’m almost always on irc (irc…

SpreeConf Europe Aug 22-23 in Dublin, Ireland

The e-commerce team behind the popular Spree project is pleased to announce its first ever conference in Europe. SpreConf Europe will be held on Aug. 22-23 in Dublin, Ireland. Two full days of training and talks on Spree, Rails, Backbone and Coffeescript as well as a few non-technical talks from industry leaders.

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.

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.

Loading older posts