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

New RubyTapas freebie, and a birthday sale

Hi all! I’ve put up a new RubyTapas freebie video today. It’s about un-indenting strings. This is a solved problem, of course; but this video walks through the process of applying assorted handy Ruby features to take it from several lines of code to one very succinct line. You might learn something new along the way. See the episode, along with some celebratory birthday discounts, here.

Mina v0.3.6 release

Just released a new mina release. It includes some bugfixes, some cool new tasks and many more. Check out the changelog.

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”.

Loading older posts