ȥå   Խ ʬ Хåå ź ʣ ̾ѹ   ñ측 ǽ   إ   ǽRSS

Ruby

Last-modified: 2010-03-08 () 19:07:48 (2752d)
Top / Ruby

Ĥ

  1. printΰ򥫥ޤǶڤȡϢ뤷ɽޤ
  2. putsΰ򥫥ޤǶڤȡԤɽޤ
  3. false, nilǤ0Ͽ˴ޤޤޤ
  4. /ɽ/ =~ ʸפȤϡʸ򸡺ơɽĤäǥåͤȤʤޤĤʤСnilȤʤꡢȤʤޤ

FAQ

AptanaRadRails򥤥󥹥ȡ뤷褦Ȥơ403 forbiddenɽƥ󥹥ȡǤޤ
urlϤƥ󥹥ȡ뤷ޤ

Ruby on Rails 1.2.3Ruby-GetText򥤥󥹥ȡǤޤ

C:\InstantRails\rails_apps>gem install gettext
ERROR:  While executing gem ... (Gem::GemNotFoundException)
    Could not find gettext (> 0) in any repository
C:\InstantRails\rails_apps>gem install gettext -v 1.10.0
ERROR:  While executing gem ... (Gem::GemNotFoundException)
    Could not find gettext (= 1.10.0) in any repository

Τ褦ľܥ󥹥ȡ뤷ޤ

C:\InstantRails\rails_apps>gem install c:\tmp\gettext-1.10.0-mswin32.gem
Successfully installed gettext, version 1.10.0

1.10.0꿷СRuby-GetTextRuby on Rails2.0ʹбʤΤǥ󥹥ȡǤޤ
http://underscore.jp/diary/20080227.html

XREAruby¹Ԥˡ

ץΤ褦˵ҤFTPեȤǡ/public_html/ruby/websampleפ˥åץɤƤޤθѡߥå700Ȥޤ

UTF-8

sample_web_page_utf8.cgi ... ץȼȤUTF-8ǵҤޤ

#!/usr/local/bin/ruby -Ku
# UTF-8 Webڡϥץ

print "Content-type: text/html; charset=UTF-8\n\n"
puts "<html>"
puts "<head>"
puts "<meta http-equiv='content-type' content='text/html; charset=UTF-8'>"
puts "</head>"
puts "<body>"
puts "Hello ӡ!"
puts "</body>"
puts "</html>"

urlǥڡǧǤޤ
http://tadaa.jp/ruby/websample/sample_web_page_utf8.cgi

Shift_JIS

sample_web_page_sjis.cgi ... ץȼȤShift_JISǵҤޤ

#!/usr/local/bin/ruby -Ks
# Shift-JIS Webڡϥץ

print "Content-type: text/html; charset=Shift_JIS\n\n"
puts "<html>"
puts "<head>"
puts "<meta http-equiv='content-type' content='text/html; charset=Shift_JIS'>"
puts "</head>"
puts "<body>"
puts "Hello ӡ!"
puts "</body>"
puts "</html>"

urlǥڡǧǤޤ
http://tadaa.jp/ruby/websample/sample_web_page_sjis.cgi

å׾rubyեǤʤƤϣˤǤ
url:XREA TroubleShooter