Ruby notes

It is usually better to use ! rather than the more explicit == false.

When using .try with a method that takes options, pass them into try separated by commas:

.include?(q) becomes .try(:include?, q)

 
0
Kudos
 
0
Kudos

Now read this

Use griddler to receive emails as http post events from Mandrill in Rails

Much of this post is based off of SendGrid’s great tutorial that can be found here. However, I found that some of the contents were outdated. Additionally, I wanted to use mandrill instead of SendGrid. At times, it may be necessary to... Continue →