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 restore support for Nginx’s gzip_static in Rails 4.2

Nginx has the ability to serve static .gz files instead of compressing assets on the fly, which is great for performance. The Rails asset pipeline has supported this feature in the past, but unfortunately, this support is currently missing in Rails 4.2 and Sprockets 3. The Rails team is aware of the problem and has promised a fix, but in the meantime, here’s a workaround to restore this great feature.

Clipping Images for Rails: Using Paperclip

Implementing file uploading can be one of the most fun parts of writing a Rails application. But it can also be a bit confusing if you’ve never done it before. This blog post looks at the paperclip gem, and how to both implement it and understand what it’s doing behind the scenes.

An alternative to rails STI, that requires no schema changes

Single table inheritance has a number of tricks and gotchas, it also requires developers to unnecessarily persist code details (such as class name) in the database. We wrote a simple model concern to help alleviate some of these issues. Check our our post!

Ode to Sequel

Relatively recently I switched from ActiveRecord to Sequel, and was completely blown away by all of the features Sequel offers, so I wanted to share it with you.

jQuery UI Autocomplete with Ruby on Rails

Step by step tutorial how to use the jQuery UI Autocomplete plugin on a Rails project. It includes using the jquery-ui-rails plugin, and styling the autocomplete with images and formatted titles. Check it out here.

GitCompound -- yet another dependency manager

GitCompound is a dependency manager that combines features of Bundler and Git submodules. This is particularly useful when dependencies also need to be developed continuously. GitCompound is decentralized, Git-based and flexible dependency manager.

FlexMock is alive !

You’ve liked flexmock, but saw bugs creep in since Jim Weirich’s passing. I’ve started to fix the obvious (minitest v5 compatibility I’m looking at you) and want to make flexmock alive again

Youtube filter for html-pipeline

Need to convert youtube url into a video iframe? I just create a gem called html-pipeline-youtube for adding youtube filter to html-pipeline. I think this might be what you need! AND…
Onebox does do better in url transformation, and I did not know it before, than…
Loading older posts