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.

Generating the Gemfile.next.lock

We recommend using the Dual Boot technique for upgrades. This requires us to generate a Gemfile.next.lock file that will be used to boot the app with the next version or Rails. In this article we’ll share 2 techniques to generate this file: the faster one and the safer one. [more inside]

Why Ruby has Symbols?

In my recent blog post I describe the difference between strings and symbols in Ruby. It starts with the usage difference and then digs into how interpreter makes related optimizations.

How to use ActiveRecord in a library

Ever wanted to use ActiveRecord in a pure Ruby library/gem, not in a Rails app or Rails Engine? In this blog post I walk through how to accomplish this and some of the gotchas which I encountered along the way. Covers how to connect to the database, define models, “connect” the models to the database, and how to run a directory of migrations, all without Rails. Example source code is also available on GitHub.

Loading older posts