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

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.

How to change the process name of your Ruby programs as shown by `top` and `ps`

Process names for Ruby programs can be noisy, making it difficult to figure out exactly which process is doing what. In this post I show how you can change them to not only make them more friendly, but also display useful status information.http://blog.honeybadger.io/how-to-change-the-process-name-in-ruby-for-top-and-ps/

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))?
I have the equivalent of this for ActiveRecord records https://github.com/danie…
Loading older posts