20 Apr '16, 12am

Factory Girl Railsのチートシート - Rails Webook https://t.co/iIUgdgsevB

# 第2引数にtraitのシンボルを渡すことで値を設定できる build(:product , :published ) #=> <Product id: nil, name: "My Awesome Product", published: true, published_at: "2014-12-09 13:27:36", start_at: nil, end_at: nil, created_at: nil, updated_at: nil> # factoryで定義したシンボル名でオブジェクトを作成できる build(:week_long_published_product ) #=> <Product id: nil, name: "My Awesome Product", published: true, published_at: "2014-12-09 13:29:35", start_at: "2014-12-02 13:30:29", end_at: "2014-12-09 13:30:29", created_at: nil, updated_at: nil>

Full article: http://ruby-rails.hatenadiary.com/entry/20150102/1420174315

Tweets

Girl Tribe Pop Up – Charlotte, NC https://t.co/...

high.heels.com 19 Apr '16, 2pm

Last Saturday we had a blast at Sugar Creek Brewing Co. selling our high heels alongside many other Charlottean women entr...

Ruby on Rails 5.0 Release Notes — Ruby on Rails...

edgeguides.rubyonrails.org 19 Apr '16, 10am

If you're upgrading an existing application, it's a great idea to have good test coverage before going in. You should also...

A Teenager Asked a Girl to Prom With a Pair of Fake Yeezy Boosts

A Teenager Asked a Girl to Prom With a Pair of ...

uk.complex.com 20 Apr '16, 8pm

Prom season is coming up and the extravagant videos of people getting asked on dates are going to show up soon. The over-t...