- http://digilog6.blog18.fc2.com/blog-entry-51.html
- http://www.weblan3.com/mobile/reference-mobilesite-xhtml.php
色一覧
テキストに色を付ける時は、fontタグを利用する。
<font color="#333333">文字</font>
<font color="#333333">文字</font>
<%= t("label_login") %>
I18n.t(:notice_saved, :text=>"xxx")
ja:
label_login: "ログイン"
:notice_saved: "%{text}を保存しました。"
irb(main):072:0> today = Time.now
=> 2013-10-10 16:22:31 +0900
irb(main):073:0> beginning_of_month = Time.now.beginning_of_month
=> 2013-10-01 00:00:00 +0900
irb(main):074:0> (today - beginning_of_month).to_i/1.day
=> 9
match '*path', :to => 'application#error_404'
def error_404
error_msg = "<h2>404 Not Found</h2><p>The page you were looking for doesn't exist.</p>"
render :text => error_msg, :status => 404
end
$ gem list --local | grep mysql2
mysql2 (0.3.11)
$ irb
irb(main):001:0> require 'mysql2'
LoadError: no such file to load -- mysql2
from (irb):1:in `require'
from (irb):1
irb(main):002:0> require 'rubygems'
=> true
irb(main):003:0> require 'mysql2'
=> true