Close
Glad You're Ready. Let's Get Started!

Let us know how we can contact you.

Thank you!

We'll respond shortly.

PIVOTAL LABS
[Standup][NY] 08/24/12: Penultimate Summer Friday News

Interestings

FactoryGirl ignored attributes

Ignored/transient attributes are attributes you can pass into a FactoryGirl constructor that you couldn’t pass into a normal model constructor.

They helped us eliminate a lot of setup having to do with associations.

Check it out:
https://github.com/thoughtbot/factory_girl/blob/master/GETTING_STARTED.md#transient-attributes

Suman is the champion! (still)

Suman defended his title and defeated Berry in the finals of the First Annual Summer Intern Farewell Table Tennis Memorial Tournament to win his second championship. Thus a ping pong dynasty is born.

Date.current (respects time zone) vs. Date.today (no time zone)

Date.today and Time.now are Ruby, and do not respect time zone.

Be careful when using things like 1.day.from_now and Date.tomorrow, because these are ActiveSupport methods that DO respect time zone.

If you’re comparing 1.day.from_now to Date.today, these are not equivalent. Use Date.current.

Comments
Post a Comment

Your Information (Name required. Email address will not be displayed with comment.)

* Copy This Password *

* Type Or Paste Password Here *