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.

  Today

A Look at the Future by Looking at the Past

The UNIX has survived for almost 5 decades and will survive for another 5 decades or more. What if we could build Gems that could evolve and still provide useful unit of functionality for decades to come? The ‘What’ is found in the tests, the ‘How’ is found in the production code and the ‘Why’ is not found in any form of code. The ‘Why’ is the design decisions that developers make and it evolves over time. Some of the ‘why’s can be found in the form of comments, blog posts and as discussion threads between the developers on forums. How can we minimize the time spent on ‘Why?’. Can developers become more productive by developing Micro Gems that follow the UNIX philosophy? Read more about this topic : Micro Gem : A Look at the Future by Looking at the Past

Using presenters and decorators to clean up your templates in Ruby on Rails (VIDEO)

When developing a web application, templates usually need to implement some logic, especially conditionals. I’m going to show you two patterns which are commonly used in web development with Ruby on Rails: presenters and decorators. They are meant to move template logic to dedicated classes, so templates look cleaner and more object oriented. http://davidmles.com/blog/presenters-decorators-rails/

Microlibrary for rescue exceptions declaratively

I’ve written a microlibrary for rescue exceptions declaratively in your Ruby classes. Rescata dry up your code from begin... rescue... ensure.... end It provides you a method for rescue methods using other methods, lambdas or blocks. Also, this gives you freedom to build any custom solution to rescue for specific error classes.. Hope you enjoy it!

Colt Gem Released

Colt is a micro gem used to subscribe to a given plan using the Stripe API. The plans must already exist in your account. The current version can check Stripe credentials and Stripe API version. [more inside]

Now updated to include subscribe, update and cancel features.

Ruby Basics

Do you know how the private keyword affects a class method? Read about it here:Hiding a Class Method

You can also use private_class_method. …
Good tip. I have updated the article with your suggestion.

Allowing similar searches in Postgres

Taking advantage of Postgres can make a huge difference in your Rails app. Here is an article I wrote about allowing for similar searches in Postgres, using the trigram extension. Think of Google when it says “Showing results for computer” when you searched “cmputer”.

Building a Ruby Gem in 2015

Building and publishing a gem, even a simple one, is a great way to level up your Ruby skills and gain experience with GitHub’s powerful ecosystem of tools. Here’s what I learned.

You have made some good points. But too many suggestions can be overwhelming fo…

DeepDup Gem Released

I was not able to find a plain Ruby some_deeply_nested_object.deep_dup library so I created one. GitHub link to the gem: deep_dup.

How is this better than Marshal.load(Marshal.dump(foo))?
Loading older posts