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

Loading older posts