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.

Almost Sinatra in Six Lines of Ruby - A Breakdown - Build Your Own Microwebframework

FYI: A line-by-line breakdown of Konstantin Haase’s Sinatra refactored in six lines of Ruby from yesterday’s Vienna.rb talk. As an all-in-one-page version or as an online flip-through slide show. Get inspired and build your own microframework. The world needs more New York, New Yorks, Nancies, Rums, Cubas, etc. Cheers.

Great job!
Awesome stuff.

Embedded CSS in SVG can break your design

Some days ago I started to integrate mermaid – a JavaScript framework for diagrams and graphs – into middleman-presentation – a presentation builder framework based on reveal.js. But then I faced a rather strange design issue. Read this article for more on this topic.

Speed up ActiveRecord with a little tweaking

When you’re building a new Rails app, ActiveRecord’s defaults will take you far. Querying with .where, inserting with .save — it’s all so easy, and it’s fast enough. But when a page of mostly simple content takes a second or more to come back from the server, that’s when you know you’re going to have to spend some time on performance. Luckily, you don’t have to go too far from the simplicity of Rails to see drastic improvements in your app’s response time.

Extract a service object using SimpleDelegator

It’s now more than 1 year since I released the first beta release of the “Fearless Refactoring: Rails controllers” book. Many of the book readers were pointing to the one technique which was especially useful to them - extracting a service object using SimpleDelegator. This technique allows to extract controller actions into service objects within minutes, if not seconds. [more inside]

Loading older posts