Founded by . This Wiki is running on fdiary.net wikifarm. Powered by NaCl and security-keeper. Generated by Hiki 0.9dev (2009-08-24). Powered by Ruby 1.8.7 (2012-02-08).
â ä»»æã®HTTPã¬ã¹ãã³ã¹ããããè¿ãæ¹æ³ Controllerå ã§ã@response.headers ã¾ã㯠@headers ãç´æ¥å¤æ´ãããã¨ãã§ãããï¼ä¸¡æ¹ã¨ãåããªãã¸ã§ã¯ããªã®ã§å¥½ããªæ¹ã§ï¼ãCSVãåãã¦Excelãã¼ã¿ã¨ãã¦åãåãããä¾ã def csv_out @response.headers["Content-Type"] = "application/vnd.ms-excel" @response.headers["Content-Disposition"] = %Q|attachment; filename="data.xls"| render_text "1,2\n3,4" end åè: HowtoChangeTheContentType (Ruby on Rails#Community) â æ¹æ³ï¼ send_data, send_file ã§ãåæ§ã®
ãã£ã¡ãããã¤ãã ruyb-1.8.4ã®YAMLã¯ã¯ã½ã§ããªã ã¾ãæ¥æ¬èªçªã£è¾¼ãã§ãããããããã¾ãããã ruby-1.8.2ã®YAMLã«ç¡çç¢çè¼ãå¤ããããã¼ã¿ãããããã«ãªã£ãããã¦ãã¾ãã¾ãããã ã¾ããããããã©ã®ã¸ããæªããã¨ããã¨ãã£ã¨UTF8ã¨ããæªããã ï¼ Windowsã®SJISããããã®ã ï¼ Macã®ç¬èªã³ã¼ãã¨ããè ã£ã¦ããã ï¼ ã¡ããããã
_ éèªæ¾ãèªã¿ã¡ã¢: æ¥çµã½ããã¦ã§ã¢ 2006.03å· ãRailsã¢ããªã±ã¼ã·ã§ã³ãæ¥æ¬èªåããããã¨ããè¨äºã®ãã¹ããã1ãã«ä»¥ä¸ã®ãããªè¨è¿°ããã£ãã ã¾ããRailsã§ã®Rubyã®åä½ã¢ã¼ããããã¼ã¿ãã¼ã¹ã«åããã¦UTF-8ã¢ã¼ãã«å¤æ´ãã¾ãã(ç¥)environment.rb(ç¥)ãéããå é ã«ä»¥ä¸ã®ã³ã¼ãã追å ãã¦ãã ããã $KCODE = 'u' $KCODEã¯ãRubyã®å¦çããæåã³ã¼ããæå®ããç¹å¥ãªå¤æ°ã§ãuã¯UTF-8ã表ãã¾ãã ãã®è¨å®ã«ããRubyã®åä½ã¢ã¼ããUTF-8ã¢ã¼ãã«ãªãã¾ãã [æ¥çµã½ããã¦ã§ã¢ 2006.03å·(68ãã¼ã¸)ããå¼ç¨] 以åãåæ§ã®èª¬æãèªãã§ãä¸è¬çã«ãããããã®ãªã®ããªãã¨çåã«æã£ãã®ã ã£ããã¨ããã®ã$KCODEã®æå®ã¯æ£è¦è¡¨ç¾ã®ãããã®ä»æ¹ãå¤ãã¦ãã¾ãã®ã§ãå¯ä½ç¨ã大ããããã®ã§ã¯ãªããã¨æããã®ã§ã ã§ã
YAML ã¨ã¯æ¸å¼ã¨ã YAML ã Ruby ã§ä½¿ãYAML ã«ãã Marshal ã®ä»£ããã«ä½¿ã PStore ã®ä»£ããã«ä½¿ã YAML::parse æ§è½ãµã¤ãº å¦çé度 åèæç® Wed, 13 Aug 2003 14:42:28 +0900ãå稿ã YAML ã¨ã¯ YAML Ain't Markup Language ã ããã§ããain't ã£ã¦ãªãã®ãã¨ãç¥ããªãã£ããã§ããã am not ã¨ã isn't ã¨ã hasn't ã¨ã haven't ã¨ãã®ãã¨ãããã æ¸å¼ã¨ã ä¸è¬çãªåã«ã¤ãã¦ãã©ã®ããã«è¨è¿°ããããã¨ããã®ã決ã¾ã£ã¦ãããYaml Cookbook ã«è©³ãããè±èªãªãã¦èªã¾ãªãã¦ããã½ã¼ã¹ãè¦ãã°ãããã åºæ¬çã«æ¥é èªã¨ã¤ã³ãã³ãã§è¡¨ç¾ã YAML ã Ruby ã§ä½¿ã Ruby 1.8 ãã YAML ãå©ç¨ããããã®ã©ã¤ãã©ãªãæ¨æºæ·»ä»ãªã®ã§ãä½
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}