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.

Cleaning the worst CSS files with relative ease

We have all seen them. Those really nasty CSS/SASS files that “someone else” wrote. Here is a gem I wrote to take those nasty files and clean them up. It reworks the CSS to remove duplication and keep it as DRY as possible. A Live version can be found here. or the source downloaded from github.

Taking Sass to the Next Level (with SMURF and @extend)

Blogpost about some advanced uses of Sass for writing better, more modular frontend code. The first part gives an overview about SMURF, which stands for Scalable, Modular, reUsable Rails Frontends and is an effort to implement the SMACSS approach using Sass (& Rails). The second part of the post talks about lessons learned on the correct/sensible usage of Sass’s powerful but dangerous @extend functionality. Read more

Making RABL and your Ruby APIs Fast

RABL is one of the most popular and easiest ways to craft high quality APIs in Ruby as used in large projects like Spree and foreman. As RABL’s popularity has grown, I often get questions about improving performance of APIs as the volume of traffic for the web service increases. I released a helpful guide that covers this question in detail called RABL in Production. If you have any other thoughts or questions, please feel free to raise an issue or help improve the article!

Airbrake alternative

We’ve just added “Project Exceptions” addon to Workmate. It’s airbrake alternative and works well with airbrake gem. Pricing: $3 per project. Looking forward for your feedback.

Override the equality operator in your Ruby classes

Test driven development by example is a wonderful book. It could only be better if the examples were all in Ruby :). Mostly, it is pretty easy to convert the code to Ruby if you have some experience…..equality though, can be a little tricky to override if you are relatively new to the language. Fear not, because I’ve just blogged about how to override the equality operator in ruby, at the same time, throwing in some extra goodness of test driven development.

Loading older posts