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.

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!

https://github.com/discourse/onebox AND https://github.com/naveed-ahmad/auto_h…
Onebox does do better in url transformation, and I did not know it before, than…

Factories that makes JSON

Sometimes, it gets quite annoying while you are testing your API, that accepts JSON. Often the solution in this is to keep JSON data in fixtures and then parse that and provide to endpoint. Maintaining then becomes quite a pain, especial if you have to support complex JSON data types and introduce changes with time. Here is solution: Read more

How to add useful context data to exceptions in Ruby

Sometimes the standard backtrace / error message combo isn’t enough. Sometimes you need extra data to locate the cause of an error. In this post we’ll discuss three easy ways to add more context to your exceptions. http://blog.honeybadger.io/how-to-add-context-data-to-exceptions-in-ruby/

Kontena: Docker Platform for Rubyists

Kontena is a Docker orchestration platform that is written using Ruby. Kontena features advanced cluster scheduling, network overlay, vpn, image registry etc. Check the documentation and source code from Github.

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 :-)

Understanding Ruby’s strange “Errno” exceptions

If you’ve ever taken a look at Ruby’s exception hierarchy, you may have noticed something weird. In addition to all of the normal exceptions like RuntimeError and NoMethodError, there’s an odd reference to Errno::* . This post discusses what these exceptions are and how to interpret them. http://blog.honeybadger.io/understanding-rubys-strange-errno-exceptions/

Loading older posts