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.

Writing a one-time script in Rails

Have you ever wanted to import a bunch of data into your app from a CSV file? Or maybe you need to fix badly encoded characters in some of your customer reviews. These are “ad-hoc tasks.” As in, you probably only need to run them once. So what’s the best way to handle an ad-hoc task in Rails?

This post was reported by a user. In error or anyone want to bring up a problem…
@PETER COOPER: Probably reported in error, IMHO the article is helpful.
Justin Weiss’s articles are always great.

26+ New Themes - Dr. Jekyll's February '17 Edition - Midnight, Merlot, Bootflat, etc.

Let’s welcome the February’17 Edition of the Dr. Jekyll’s Themes of the Month series that highlights ready-to-fork (or ready-to-bundle) static (web)site themes. New themes include: Console by Jae Hee Lee, Emping by Rahmat Subekti, Papyrus by Hugo Sereno Ferreira, Alembic by David Darnes, Whiteglass by Chayoung You, Architect (Pages) by Jason Long, Dinky (Pages) by Diana Mounter, Hacker (Pages) by Jason Costello, Leap Day (Pages) by Matt Graham, Merlot (Pages) by Cameron McEfee, Malt (Cloud Cannon) by Mike Neumegen, Urban (Cloud Cannon) by George Phillips, Schemadoc by Gerald Bauer, Octopod’s Bootflat by Stefan Haslinger, and many more. Find all themes at the Dr. Jekyll’s Themes directory. Any theme missing? Add your theme! Happy Publishing with Jekyll ‘n’ friends. Cheers.

GoF design patterns in Ruby

In this repo I wrote a summary of the design patterns explained in the book Design Patterns in Ruby, where Russ Olsen explains and adapts to Ruby 14 of the original 23 GoF patterns.

How to dynamically add attributes to your ActiveRecord models

Sometimes we need to build an application that has domain models that we don’t know all the attributes of. A good example of such application is a system for tracking business contacts. In the center of it is a Contact model that has attributes like name, email, phone number, etc. But can we know beforehand all the attributes that our Contact model will need to have? If we want to create the application for a wide audience, it can be difficult to predict. Solution? Allow users to add more attributes to Contact model in the runtime! We’ll do exactly that in this tutorial. [more inside]

Loading older posts