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.

  Yesterday

Delayed Job Gem for CSV

It is essential to have a fast server as the delay in processing can literally kill a business’ revenue stream and frustrate the users. The speed of a website is the actual time it takes for a web page to load on the screen after being requested by the browser. Now consider a scenario where you need to use huge database and send emails to a list longer than the Wall of China. Exaggeration or not, sending emails to a long list of people will take time, increasing the processing time which will slow the server and annoy the users. To read full visit : Railscarma Blog

Exception handling and testing it with Minitest

Exception handling is not something we always think of in advance. Instead of being proactive, we are almost always reactive. We wait for the disaster to happen and than we adapt our code for it. In my last blog post I cover some exception handling techniques and how to test them using Minitest. Check it out here.

Object Oriented Design Basics : Flexible Design

Software does not exist in a vacuum. It interacts with environment and the environment interacts with it. The environment is market forces, users, external systems, operating systems, competing software, changes in law etc. It evolves, either it improves or decays over time. The only thing that is constant is change demanded by the environment. To read more, check out the Flexible Design article.

PR Log: Turn Pull Requests into Changelog Entries

tf/pr_log (MIT license) is a small command line tool which fetches recent pull requests from a GitHub repository and inserts changelog items. It encourages handcrafted changelogs and plays nicely with existing changelog content. It uses GitHub milestones and labels to filter items and insert custom prefixes like “Bug fix”. In most cases it can parse its configuration automatically from the project’s gemspec. [more inside]

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!

Loading older posts