2013-01-01から1ヶ月間の記事一覧

migrationって忘れやすい

滅多にやらないから? $ rails generate migration CreatePatrols編集する class CreatePatrols < ActiveRecord::Migration def change create_table :patrols do |t| t.integer :campus, :null=>false #キャンパス t.integer :staff_id, :null=>false #スタ…

regexp match /.../n against to UTF-8 string

rails3.1.3からrails3.1.8に変更してからの苦労しているところ。警告が出ている c:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.8/lib/active_support/core_ext/string/output_safety.rb:23: warning: regexp match /.../n against to UTF-8 string…