29 Jan '16, 7am

Factory Girlを用いてテストデータを初期化する - Rails Tips - Ruby on Rails with OIAX https://t.co/LY2F9v1ovE

Factory Girlを用いてテストデータを初期化する - Rails Tips - Ruby on Rails with OIAX https://t.co/LY2F9v1ovE

require 'digest/md5' require 'database_cleaner' md5 = Digest::MD5.new Dir[Rails.root.join("spec/initial_data/*.rb")].each do |f| md5.update File.new(f).read end conn = ActiveRecord::Base.connection DIGEST_TABLE_NAME = '_initial_data_digest' unless conn.table_exists?(DIGEST_TABLE_NAME) conn.create_table(DIGEST_TABLE_NAME) do |t| t.string :md5_value end end class InitialDataDigest < ActiveRecord::Base self.table_name = DIGEST_TABLE_NAME end digest = InitialDataDigest.first unless digest.try(:md5_value) == md5.hexdigest DatabaseCleaner.strategy = :truncation, { except: [ DIGEST_TABLE_NAME ] } DatabaseCleaner.clean yaml_path = Rails.root.join('spec', 'initial_data', '_index.yml') if File.exist?(yaml_path) table_names = YAML.load_file(yaml_path) table_names.each do |table_name| path = Rails.root.join('spec', 'initial_data', "#{table_name}.rb") if File.exist?(path) puts "Creatin...

Full article: http://www.oiax.jp/rails/tips/initialize-test-data-with-f...

Tweets

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

paper.li 28 Jan '16, 12pm

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

Ninja Ruby on Rails coder by mmichuda

freelancer.com 29 Jan '16, 8pm

ruby rails product connect user , rails list task user , rails ruby social networking , rails ruby , rails ruby reservatio...

Deploy to Heroku [ Ruby on Rails from the ground up

Deploy to Heroku [ Ruby on Rails from the groun...

vid.staged.com 30 Jan '16, 4am

Deploy to Heroku [ Ruby on Rails from the ground up - 5/5 ] More WEBSITE TIPS Bolow: Minnesota Web Design, Most Important ...

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

paper.li 30 Jan '16, 12pm

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

Ruby On Rails. Доработать проект https://t.co/o...

weblancer.net 28 Jan '16, 2pm

Ruby On Rails. Доработать проект

Software Developer, Ruby on Rails:

eluta.ca 29 Jan '16, 9pm

Software Developer, Ruby on Rails Chimp.net (Vancouver BC ): "ABOUT US Chimp is a rapidly growing technology company locat...

Ruby on Rails Developer Job in Perth Australia

apna-watan.blogspot.com 28 Jan '16, 3am

A leading Perth organisation is seeking a forward thinking Ruby on Rails Developer to join their highly reputable organisa...

How I finally learned to build stuff with Rails

medium.com 28 Jan '16, 2am

Several months ago I set out to learn Rails once and for all. I had dabbled with rails several times in the prior years, b...

Upgrading to Ruby on Rails 5.0

wyeworks.com 26 Jan '16, 5pm

What’s the first thing one does when upgrading a Rails application? Personally, the first thing I try to do is become well...

Upgrading to Ruby on Rails 5.0

rubyflow.com 26 Jan '16, 5pm

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

Ruby on Rails Programmer – Fullscreen – Los Ang...

sachisquest.com 27 Jan '16, 7pm

Ruby on Rails Programmer – Fullscreen – Los Angeles, CA – http://www.indeed.com/job/Ruby-Rail-Programmer-at-Fullscreen-in-...

【現役Rubyistが質問対応】Ruby on Rails チュートリアル | ShareWi...

act.share-wis.com 26 Jan '16, 1pm

Ruby on Rails Tutorial: Learn Web Development with Rails (2e)

Want to learn Ruby on Rails? Free workshop by @...

meetup.com 26 Jan '16, 10pm

Women Who Code (WWCode) is dedicated to providing an empowering experience for everyone who participates in or supports ou...

Build a Website with Ruby on Rails by aviv4000

freelancer.com 24 Jan '16, 9am

I need a good Ruby on Rails programmer to build a website in Hebrew (RTL) with RoR (with a CMS) similar to the following: ...

CERTFR-2016-AVI-037 : Multiples vulnérabilités ...

cert.ssi.gouv.fr 26 Jan '16, 4pm

De multiples vulnérabilités ont été corrigées dans Ruby On Rails . Certaines d'entre elles permettent à un attaquant de pr...