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.

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]

New org for feedparser (atom, rss, etc.) and feedfilter (strip_ads) gems

Hello, for easier (re)use and contributions I’ve moved the feedparser and feedfilter gems to its own github org /feedparser - there’s no dependency on planet pluto ;-) - its former home. The feedparser gem offers a web feed parser and normalizer for Atom, RSS 2.0 and friends. And the feedfilter gem offers filters ‘n’ rules for easy (re)use e.g. strip_ads for feedflare of tracking bugs for feedburner, etc. Cheers.

Loading older posts