RESTful / map.resources / Atom
ãã£ãããªã®ã§URIé¢ä¿å ¨è¦ç´ãããããã¨åæã«ãåé·ãªã³ã³ããã¼ã©ã¼ã³ã¼ãã¯ã¢ãã«ã«æã£ã¦è¡ãæ´»åãã³ã³ããã¼ã©ã¼ã®ã³ã¼ããã¢ãã«ã«ç§»ããã¨ã§ãã¹ãããããããªããã¨ããã®ãããã
ã¨ããããã/pages/{action}/{id} ã§ã¯ãªãã/pages/{id} ã§ã¢ã¯ã»ã¹ã§ããããã«ããããã¨æã£ã¦ãmap.resources ã®ä½¿ãæ¹ãã¿ã¦ããããèéã«ããã¦ãAtomFeedãä½ãããã¨ãã話ã«ãªã£ã¦ãindex.atom.builderãæ¸ãããã®ã®ããç»é²ããã¦ãããã¼ã¸ã®ä¸ã§èªåãé²è¦§ãããã¨ã®ã§ãããã¼ã¸ãæ´æ°é ã«ãã¨ããã¯ã¨ãªã®å®è¡æ¹æ³ã«æ©ãã
èªåãé²è¦§ãããã¨ãã§ãããã®æ¡ä»¶ãã
- ãã¼ã¸ã®ææè ãã¢ã¯ã»ã¹å¶å¾¡ãããã¦ããªãå ´åã§ãå¿åã¦ã¼ã¶ã¼ãå«ãã¦å ¬é
- ãã¼ã¸ã®ææè ãã¢ã¯ã»ã¹å¶å¾¡ãããã¦ããå ´åã«
- ãã¼ã¸ã®ææè
ã¨å人é¢ä¿ã«ãã
- ãã¹ã¦ã®å人é¢ä¿ã«ã®ã¿å
Ž
- R1 ã¨ããã¿ã°ã®ã¤ããå人é¢ä¿ã«ã®ã¿å
Ž
- ãã¼ã¸ã®ææè
ã¨å人é¢ä¿ã«ãªã
- ãµã¤ãã«ç»é²ããã¦ã¼ã¶ã¼ã«ã®ã¿å
Ž
ãªã®ã§ãããã¾ã¨ãã«å®è£ ããã¨ã5çºãããSQLæãã¨ã°ããªãã¨ãããªãã®ã§èºèºãã¦ãã¾ãã¾ããã¨ãããSQLæã®æ¸ãæ¹ãããããªãã®ã§ãRubyã³ã¼ãã§å®è£ ãããã5çºé£ãã§ãããã¨ããã ããªã®ã§ããããã¤ãã£ã«ã¿å¦çãRubyã³ã¼ãã«ãªãã®ã§é ãé ãã
以åèãã¦ãããããæ°ãããã®ã§ããããã£ãããªã®ã§åèãããªã¢ã¼ãã£ãºã ã§DB使ãã¨ãããªãã¨ããªããã¨ããä¾ããã
Fixtures as a initial data.
昨日ã®ç¶ãã§ãFixtureã®åé¡ãã©ãããload_fixtures ãåå®ç¾©ãã¦ããã®ä¸ã§èªä½ã§create_fixturesããã¦ããã®ãé常ã«åé¡ã®ããã§ãããã解決ããã«ã¯ãfixture.rb ãæåããæå¾ã¾ã§èãåãæ ¹æ§ãå¿ è¦ããã
ã§ããµã¨æãã¤ããã®ã¯ãFixtureã£ã¦ãERBãªãã ããã<% if RAILS_ENV == "test" %> ã¨ãã§ããããããªããï¼ã¨æã£ã件ã
ç¶ããèªã[Rails 2.0] Time#to_s(:sym) 㨠Ruby RSS ã® Time ã®ä¸æ´å
ãããªã¨ããã§åµãã¨ã¯ã
Rails 2.0 ã§ã¯ Date, Timeã®ãªãã¸ã§ã¯ãã«å¯¾ãã¦Time#to_s(:db)ã®ãããªå½¢ã§ãã¼ã¿ãã¼ã¹ã«ç¹åãããã©ã¼ãããã®æååãåå¾ãããã¨ãã§ããããã«ãªã£ã¦ããããã ã
ã§ãããããRSS::Rss::Channel:Item#date ã® Timeã¯ã©ã¹ã¨ã®ç¸æ§ãæªãã
ç¶ããèªãrake test:units completed.
ã¨ãããã rake test:units ã¯å®äºããã®ã§ãrake rails:update ãããã¦boot.rb ãã»ãã®JavaScriptãªã©ãã¢ãããã¼ããã¾ããã
次ã¯functionalãªãã ããã©ãå¤ãã®æ©è½ã¯JavaScriptã§å®è£
ãã¦ãããã大å¤ãªãã ãªããããã