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.

Using Rails 5 Action Cable with ReactJS

Action Cable provides real time communication. ReactJS is a good tool to manage view complexity on the client side. Together they make it easy to develop snappy web applications which requires state management on the client side without too much work. I walk over using Rails 5 Action Cable with ReactJS in this post.

Finder Objects

To encapsulate query logic from the controllers, we always reach for ActiveRecord scopes. Let’s instead introduce Finder objects, and see what are some of the advantages of using them over scopes.

Benchmarking Ruby's `method_missing` vs `define_method`

Optimizing slow codebases starts by focusing on low-hanging fruits, but facts are more than recommended to justify any sort of change. So I went ahead and benchmarked/graphed the performances of method_missing and define_method.

http:// is missing in the link
First off, thank you, Frank! Second, here’s a link that works franck.verrot.fr/…
I’ve fixed the post, although you can edit your own here as well :) Thanks! …
Oops… thanks a lot Ruby friends for mentioning / fixing the link :-)

All the Columns Fit to Index: Unique + Compound Indexing

Database indexing is often unchartered territory for many developers. Adding an index can be a powerful and efficient tool in application performance. But there are many different types of indexes out there…how do you know what your options are – and which ones to choose? This blog post dives into indexes and explores two cool techniques for using them: unique and compound indexing.

Testing Ruby's floats precision

Float precision in Ruby is a well known quirk. But when testing floats, not many of us bother to remember this and make their tests respectful to this quirk. In this post we will see how the popular Ruby testing frameworks help us test Floats properly.

Loading older posts