31 Mar '12, 3pm

Ruby on Railsで複合キーを扱う(7) -- 補遺

Ruby on Railsで複合キーを扱う(7) -- 補遺

date = Date.new(2010, 1, 1) %w(robot automobile ship).each do |code| Department.create!({ code: code, name: code.capitalize, started_on: date, ended_on: nil }, without_protection: true) end %w(alpha bravo).each_with_index do |code, index| Product.create!({ code: code, started_on: date.advance(years: index), ended_on: code == "alpha" ? date.advance(years: 1) : nil, department_code: "robot", name: code.capitalize, description: "" }, without_protection: true) end

Full article: http://www.oiax.jp/rails/zakkan/composite_primary_keys_7....

Tweets

Am I missing something or is this page laughabl...

guides.rubyonrails.org 01 Apr '12, 2am

The very first parameter, a string, is the text of the link which appears on the page. The second parameter, the options h...

“Rails 3.2.3ではwhitelist_attributesの設定が必要 - Ruby...

oiax.jp 01 Apr '12, 10am

Rails 3.2.3ではwhitelist_attributesの設定が必要 この記事は『改訂新版 基礎Ruby on Rails』の読者サポートのために書かれたものです。 読者サポートページに戻る 2012年3月30日に公開されたRails...

Sam Ruby: Keeping it on the Rails

intertwingly.net 28 Mar '12, 9pm

The previous error that was caught was connection pool of new applications have size 1 . This demonstrates the unique valu...

Rails 3.0’s ActiveModel: How To Give Ruby Class...

rubyinside.com 29 Mar '12, 1pm

In extracting the model-building parts of ActiveRecord, ActiveModel makes it possible to add model-like behavior to any Ru...

Ruby on Rails Guides: Rails Form helpers:

guides.rubyonrails.org 28 Mar '12, 5am

Forms in web applications are an essential interface for user input. However, form markup can quickly become tedious to wr...

“Resqueを利用したRailsでの非同期処理/バッチ処理 - Rails 雑感 - Rub...

oiax.jp 28 Mar '12, 6am

Railsアプリケーションの中で非同期処理 (バッチ処理)を実現したいことがあります。例えば、こんな場合です。 ユーザーが「送信」ボタンを押したら数千通のメールを送る。 数千通のメールを送るにはかなり時間がかかるので、その処理は後回しにして、ユ...

Ruby on Railsで複合キーを扱う(3)

oiax.jp 27 Mar '12, 1pm

# coding: utf-8 require 'spec_helper' describe Department do let(:department0) { FactoryGirl.create(:department, code: "ro...

[railscasts] Upgrading to Rails 3.2

railscasts.com 01 Apr '12, 9am

Rails 3.2 sports many new features including automatic explain queries, tagged logging, key-value store in Active Record, ...

“Capistrano 入門 - Ruby on Rails with OIAX”

“Capistrano 入門 - Ruby on Rails with OIAX”

oiax.jp 29 Mar '12, 12pm

Capistrano とは何か。それは、デプロイメントのツールである。 デプロイメントとは何か。Web アプリケーションについて言えば、それは以下のようなタスク全般を指す言葉である。 アプリケーションを本番サーバにインストールすること。あるいは...

[Rev:b04899ec] formula updated: ruby-enterprise...

rubyenterpriseedition.com 01 Apr '12, 6pm

Ruby Enterprise Edition is a server-oriented friendly branch of Ruby which includes various enhancements: A copy-on-write ...

Rubeque - головоломки на Ruby

rubyflow.ru 30 Mar '12, 6am

Решение задач - один из отличных способов хорошо провести время и узнать что-то новое. Проект Rubeque - это сборник из нес...

Ruby Best Practices - Rails Modularity for Lazy...

blog.rubybestpractices.com 28 Mar '12, 4am

Rails Modularity for Lazy Bastards 2009-04-16 04:31, written by Gregory Brown When we develop standalone systems or work o...

10 websites built using ruby on rails

10 websites built using ruby on rails

railshosting.org 24 Mar '12, 10pm

The top 10 websites built with Ruby on Rails Posted by Collin on 05/19/2011 in Rails Tutorials . Ruby is a growing force i...

integrating PHP and Ruby On Rails - Ruby Forum

ruby-forum.com 24 Mar '12, 7am

check out if they have a REST-api and access this API using one of the numerous tools available like ActiveResource or Htt...

Ruby Certification: Ruby Study Notes - Best Rub...

rubylearning.com 04 Apr '12, 8am

The Ruby Association Certified Ruby Programmer examinations are intended for such people as engineers who design, develop,...