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.

Safer SQL: Using ActiveRecord Transactions

As your application grows, how do you make your application defensive and write safe code? ActiveRecord transactions are one way to write safer SQL statements. This blog post examines the transaction method under the hood, and highlights the golden rules of transacting.

Tips for participating in the rails rumble

The Rails Rumble is the biggest international Rails hackathon and it’s organized once a year - over 100 teams distributed across the globe, each with 4 members fabricating an awesome Rails app in 48 hours. The next one is on the 7th and 8th of November and here’s some tips on how to prepare your team!

Gems != Magic

Ruby gems can seem magical. Usually, one (or more accurately: thirty) solution to a problem exists in the form of a gem. Using gems is easy and intuitive. Simply add a line in the project root’s Gemfile and run bundle install. Then, either require the name of the gem or, if using Ruby on Rails, start using the gem’s code immediately anywhere in the project. It is important to understand that gems are tools, not magic.

Clean Ruby with cleaner privates (DCI)

Understanding the context of code in a team repo is hard and it’s harder when the solution to figuring how code works is, “I Don’t Know, just Git Blame and talk to the person who wrote it.” That works until the person to blame is either yourself or unavailable. [more inside]

Polymorphic Associations With Active Record

Active Record Associations are one of the most important features of Rails. Polymorphic association is part of these associations. With polymorphic association, a model can belong to more than one other model, on a single association. Why do we need associations between models? To read full article visit, RailsCarma Blog

Introducing Interactors to represent getting stuff done.

This post introduces interactors, also know as usecases or service objects. See how your domain code can be separated from your framework. http://insights.workshop14.io/2015/08/16/introducing-interactors-to-represent-getting-stuff-done.html

So annoying : I posted 10mn ago an article about precisely the same theme - huh…
Is that gem just about form objects? or form objects and an interactor. I don’t…
Interesting. You’re actually ahead of me because I don’t separate (yet?) the no…
I have separated pretty much everything I possible could. If your saw the first…

mrh/mrhyde - static site quick starter script wizard - jekyll command tool

Hello, I’ve put together the mrhyde-tools gem that includes a command line tool that lets you run static site quick starter wizard scripts. For example, use $ mrhyde new starter or $ mrh n starter to download and install (unzip/unpack) a theme archive and configure a static site ready-to-use. For more quick starter wizard scripts see the Mr. Hyde’s Scripts library. For more themes see the Dr. Jekyll’s Themes directory. Cheers.

Faster TDD in Rails with Bundler's 'require: false'

This post explains why the Rails default behaviour of requiring all your gems automatically will lead to a slow TDD feedback cycle. Learn how to speed this up by avoiding loading gems unnecessarily, and also why using Spring may not be a good approach. [more inside]

This does not address the cause, it only addresses the symptom.
Loading older posts