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.

Cryptic Dollar Variables & Their Meanings in Ruby

Over the weekend I came across a piece of code that had a $. variable in it. I was intruiged and spent an enjoyable hour playing with global variables. Ruby has quite a few cryptic dollar variables and I’ve written about them and attempted to demonstrate using many of them in Cryptic Dollar Variables & Their Meanings in Ruby

Version your Rails views (show.v1.json.jbuilder, show.v2.json.jbuilder, ..)

Easily version your Rails views with VersionCake (e.g. edit.v1.html.erb, edit.v2.html.erb, ..). If a view for the current version doesn’t exist, VersionCake automatically degrades to the previous view version. A specific render version can be passed via the request header or query param. Perfect for API/jbuilder views. Can also be applied to any other view type (html erb/haml, etc).

EAV behavior with ActiveRecord ORM and HydraAttribute

I’ve just released the hydra_attribute 0.4.0 gem that allows to create or remove attributes for the model in runtime or assign unique attribute list for each record. Also it is possible to use query methods for selecting or grouping records by that attributes. There are a lot of examples on the github wiki page including database structure that this gem creates.

A couple of months too late for me, but great work, schema looks really nice. W…
I’ll plan to add support of select values but a little bit later because curren…

Introducing Pogoapp

We’re building a new app hosting platform with Heroku REST API/buildpack/Procfile/S3 compatibility, running on dedicated servers. This blog post is as an introduction to what our architecture looks like and why. We’re looking for a handful of trial users to start kicking the tires and giving us feedback.

Loading older posts