23 Nov '15, 6pm

my slides presenting how I handle failure in #Ruby on #Rails https://t.co/iCPxuzId2z

class ExchangeMoney < Struct.new(:payer, :receiver, :amount) attr_reader :failures class MyRollBackErrorClass < StandardError; end def call ActiveRecord::Base.transaction do add_failures("Receiver has not been found") unless receiver if payer.account.withdraw(amount) if receiver.account.credit(account) true else add_failures receiver.account.full_messages end else add_failures payer.account.full_messages end end rescue MyRollBackErrorClass return false end def add_failures(array_or_string) @failures = Array(array_or_string) raise MyRollBackErrorClass end end

Full article: http://slides.com/apneadiving/handling-error-in-ruby-rail...

Tweets

How to handle failure in Ruby on Rails https://...

rubyflow.com 23 Nov '15, 6pm

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Rub...

Building a Ruby on Rails app part 5: The front ...

rubyflow.com 23 Nov '15, 6pm

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Rub...

Ven y crea tu primera aplicación de Ruby on Rai...

welcu.com 23 Nov '15, 6pm

Ven y crea tu primera aplicación de Ruby on Rails con nosotros! Construiremos un clon simplificado de Pinterest que public...

Ruby on Rails Power!: The Comprehensive Guide https://t.co/RskvRctVnv

Ruby on Rails Power!: The Comprehensive Guide h...

sharebookfree.com 22 Nov '15, 11am

is a feature-rich, easy to learn, and powerful web application framework that makes creating sophisticated, full featured ...

“システム開発を内製するか外注するか - Rails 雑感 - Ruby on Rails with OIAX” https://t.co/PJmkfWGlhR

“システム開発を内製するか外注するか - Rails 雑感 - Ruby on Rails w...

oiax.jp 22 Nov '15, 3pm

システム開発を内製するか外注するか 『実践Ruby on Rails 4』の Baukis を Rails 4.2 にアップグレードする Ruby on Rails 4.2 を Mac OS X にインストールする手順をかなり丁寧に説明してみま...

Today in #Ruby, #Rails, & #Python is out! https...

paper.li 22 Nov '15, 12pm

Today in #Ruby, #Rails, & #Python Today in #Ruby, #Rails, & #Python, by David Young: News from Rubyists and Pythonistas Pl...

#Fill10k

startuphire.com 23 Nov '15, 1pm

Intrepid is an award-winning digital agency, specializing in creating unforgettable mobile experiences. We use technology ...

Hey! @stuk_io is looking for a Ruby on Rails En...

landing.jobs 24 Nov '15, 4pm

We're looking for a kickass Ruby on Rails developer to join our awesome team at this lovely city called Porto. If you're c...

Experienced Ruby on Rails developer for GIS app...

freelancer.com 24 Nov '15, 5am

We are working on a RoR app for a very large client and need someone to help out as there is simply too much work. The app...

Space Rails - Curso Online GRÁTIS de Ruby On Ra...

spacerails.com.br 22 Nov '15, 3pm

Assuma o controle do seu futuro Com a tecnologia back-end que acelera o desenvolvimento do seu projeto ou start-up em até ...

Un nouveau cours sur Ruby on Rails vient d’ouvr...

openclassrooms.com 24 Nov '15, 9am

Ruby vous enthousiasme et vous souhaitez réaliser des applications Web avec ? Alors lancez-vous dans Ruby on Rails. De nom...

Ruby on Rails Sr. Developer Birmingham https://...

jobfeeds.info 23 Nov '15, 6am

Yodle Chief Architect Yodle is looking for a Chief Architect to help determine, motivate, and lead the technical direction...

“upload - Ruby on Rails で画像をアップロード(paperclip, fog) - Qiita” https://t.co/mNwrElaVUj

“upload - Ruby on Rails で画像をアップロード(paperclip, f...

qiita.com 22 Nov '15, 5pm

### [>>> サンプルアプリケーションはこちらです <<<](https://renshu-upload-image.herokuapp.com/) # 今日は Ruby on Rails で画像をアップロード出来るサイトの作り方をご紹介さ...

Physical software made easy with Arduino and Ruby on Rails.

Physical software made easy with Arduino and Ru...

dreamingechoes.github.io 23 Nov '15, 10am

We need some kind of web administration panel, so that our Rails application will have listings to display all the informa...

How to relearn fundamentals after working as Ru...

reddit.com 22 Nov '15, 3am

When I decided to become a Rails developer, I think I learned how to write fairly clean, idiomatic code after a long perio...