SoftwarePatterns

NullUser On Rails

The Null Object Pattern is a popular software pattern that can be very useful as it can get rid of many nil checks in Ruby...

Aug 11, 2014 on Rails Ruby Authentication SoftwarePatterns  0

Devise Guest User

Using Devise in Ruby on Rails can be very convenient for authentication, but there are some necessary workarounds that you must be aware of, specifically whe...

Oct 09, 2014 on Rails Ruby Gem Devise Authentication SoftwarePatterns  0

Put Your Controllers On a Diet With Service Objects

When you use the Model-View-Controller pattern with Rails, you can be dragged into a state of only making models for your ActiveRecord objects...

Feb 25, 2015 on Rails SoftwarePatterns CleanCode MVC  0

Using Transactions with Active Record

<span>A transaction is a database feature where you can create, update, or delete multiple records from a database and if just one of them fails, everything ...

Mar 06, 2015 on ActiveRecord SQL SoftwarePatterns CleanCode MVC  0