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.

Ruby Spaceship <=> Operator

Adhering to the law of trichotomy, the <=> operator (sometimes called the “Spaceship Operator”) works by comparing two elements and returning a -1, 0, or 1. While the original mathematical criteria applies to only real numbers, many programming languages implement the law of trichotomy as a general comparison between equivalent types. Ruby’s <=> operator can be a bit confusing but when understood, is very powerful.

Flash messages with proper model names using Trailblazer operations and Responders

Trailblazer is a thin layer on top of Rails. It gently enforces encapsulation and can be smoothly integrated with other gems and libraries. In this blog post I explain how to integrate it with Responders gem and make both of them work together. Flash messages with proper model names using Trailblazer operations and Responders

Hyde Press- New Free Book -Jekyll Themes 'n' Templates (Starters, Blogs, Books, etc.)

I’ve added a new volume to the Hyde Press Bookshelf titled “Jekyll Themes & Templates” that includes ready-to-fork themes ‘n’ templates for sites with just pages, blogs (w/ posts, feeds, archives, etc.), single-paged sites, books, resumes, etc. Any theme you want to see included? Let us know. Cheers. PS: What’s Jekyll? It’s a free static (web) site builder / generator in Ruby.

Top Tips for Ruby on Rails Beginners

Ruby on Rails has been powering a lot of website these days and why not, it has one of simplest framework to work with. With so much hullabaloo, it is so easy to fall under its spell. If you are among those smitten by Ruby on Rails and interested to pursue it, here are some tips to help you. Read more about Top Tips for Ruby on Rails Beginners

Loading older posts