09 Sep '13, 12am

ユーザー認証のテスト(4) -- YAGNI - RSpec/Capybara入門 - Ruby on Rails with OIAX

ユーザー認証のテスト(4) -- YAGNI - RSpec/Capybara入門 - Ruby on Rails with OIAX

require 'nkf' class Customer < ActiveRecord::Base attr_accessor :password validates :family_name, :given_name, :family_name_kana, :given_name_kana, presence: true, length: { maximum: 40 } validates :family_name, :given_name, format: { with: /\A[\p{Han}\p{Hiragana}\p{Katakana}]+\z/, allow_blank: true } validates :family_name_kana, :given_name_kana, format: { with: /\A\p{Katakana}+\z/, allow_blank: true } before_validation do self.family_name = NKF.nkf('-w', family_name) if family_name self.given_name = NKF.nkf('-w', given_name) if given_name self.family_name_kana = NKF.nkf('-wh2', family_name_kana) if family_name_kana self.given_name_kana = NKF.nkf('-wh2', given_name_kana) if given_name_kana end class << self def authenticate(username, password) find_by_username(username) end end end

Full article: http://www.oiax.jp/rails/rspec_capybara_primer/signing_in...

Tweets

@adamyeats also

railscasts.com 14 Sep '13, 8pm

A slow test suite can put a damper on test-driven development. In this episode I show a variety of ways to optimize specs ...

Cygwinのインストール - Ruby on Rails with OIAX

oiax.jp 15 Sep '13, 1pm

本サイトにあるRuby on Rails 3.2 を Cygwin にインストールする手順をかなり丁寧に説明してみました の手順に沿って、Cygwin と Ruby をインストールしてください。Rails はインストールしてもしなくても結構です...

Ruby on Rails Developer #jquery #telecommuting ...

findmjob.com 07 Sep '13, 7am

Health Innovators is seeking an accomplished Ruby on Rails Developer for custom web application development. The successfu...

Great presentation on web development using rub...

slideshare.net 06 Sep '13, 10am

Web Development using Ruby on Rails Vysakh Sreenivasan Submify.com vysakh.quora.com vysakh0 - twitter/facebook March 24, 2...

My Experiences with Ruby off Rails via @karlinfox

My Experiences with Ruby off Rails via @karlinfox

spin.atomicobject.com 06 Sep '13, 2pm

I was recently pointed to Ben Singelman’s post on Why Nobody Should Use Rails For Anything, Ever . We seem to never get en...

Recommended Path for learning Ruby for Rails Tags: #ROR #RubyOnRails #Ruby #NewbieDev

Recommended Path for learning Ruby for Rails Ta...

newbiedev.com 06 Sep '13, 3pm

I have been learning Ruby on Rails since last 2-3 weeks, I've finished first two chapters from michael hartl's book, and I...

#UK [contract] Ruby on Rails Developer at ✔ #jobs

contractjob.net 06 Sep '13, 9pm

Ruby on Rails developer with experience of developing Back End systems using Ruby on Rails, NoSQL Databases, machine learn...

Telecommuting job: Ruby on Rails Developer at V...

jobmote.com 05 Sep '13, 11pm

Varsity Tutors, the premier national tutoring and test prep service, is seeking a talented Ruby on Rails Developer to join...

Chinese translation of Everyday Rails Testing i...

everydayrails.com 10 Sep '13, 1am

I’m excited to share with you a new Chinese version of Everyday Rails Testing with RSpec , translated by Andor Chen and av...

お、ドットインストールがRails4にバージョンアップしてる。Ruby on Rails 4入門

dotinstall.com 05 Sep '13, 7am

Ruby on Rails Ruby on Railsの公式サイトです(英語)。 Ruby on Rails Screencasts - RailsCasts Railsに関する動画チュートリアルです(英語)。 Minituku - a Rub...

Senior Ruby on Rails Engineer #sql #java #ruby ...

findmjob.com 05 Sep '13, 11am

Contract Position in Redmond, WA SolutionsIQ, a leading provider of Agile consulting, training, and distributed Agile soft...

The Way You Work: Ruby on Rails Expert Freelancer Marcel Morgan

The Way You Work: Ruby on Rails Expert Freelanc...

odesk.com 05 Sep '13, 6pm

Marcel Morgan knew the corporate life wasn’t for him. Despite his comfortable corporate job as a web developer, the Jamaic...

Urgently needed, Senior Ruby-on-Rails developer...

tictocfamily.com 04 Sep '13, 11am

Senior Ruby-on-Rails developer required tictoc are a leading full service digital media agency with established offices in...

Varsity Tutors: Ruby on Rails Developer: Locati...

jobs.37signals.com 05 Sep '13, 3am

Varsity Tutors, the premier national tutoring and test prep service, is seeking a talented Ruby on Rails Developer to join...

Ruby on Rails Developer with experience on Redm...

freelancer.com 03 Sep '13, 4pm

Project Description: I need a Ruby on Rails developer for some small tweaks for Redmine (www.redmine.org) Ruby experience ...