- 2000年1月1日のフォーマット
<%==
sprintf(
f.date_select(
:open_day ,
:use_month_numbers => true,
:date_separator => '%s'
), '年', '月'); %>
- MySQLのクエリ
sql = ActiveRecord::Base.send(:sanitize_sql_array, ["insert into foo (bar, baz) values (?, ?), (?, ?)", 'a', 'b', 'c', 'd'])
res = ActiveRecord::Base.connection.execute(sql)