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.

Lazy load your heavy work through dunder

To increase performance typically one might want start multiple heavy tasks concurrent. This is already solvable with threads or the reactor-pattern but setting this up could be cumbersome or require direct interactions with threads etc. What inspired me was the quest to run concurrent database queries within a single request in rails. I just released dunder which tries to solve that problem. For a working example app check this one out: dunder-rails-demo

Introduction to Haml Screencast (6 minutes)

Screencasts.org has released Introduction to Haml, a (free) screencast that introduces you to a popular (but somewhat divisive) Ruby templating library. If you already love/hate Haml, this isn’t going to sway you but if you’re new to it, check it out.

Nice one peter.
I stopped using haml in favor of Slim. Slim is faster, and its slimmer :) …

ActiveRecord migrations outside of Rails

Sometimes you are working with a database that is not used in the full rails context. This blog post describes how I accomplished using ActiveRecord migrations to build and manage my database.

Also checkout the standalone migrations project: https://github.com/thuss/st…
I saw this originally but it didn’t have quite what I needed so I rolled my own…
Loading older posts