Rails 2.0ããRESTFUL対å¿ã®ä¸ç°ã¨ãã¦ãscaffordã§èªåçæããå ´åãHTMLã ãã§ã¯ç¡ãXMLã®åºåããããããã«ãªã£ãã ãããçµæ§ä¾¿å©ãèªåçã«ãã¢ãã«ã®å 容ãXMLã«å¤æãã¦ãããã®ã§ãããããã ã§ããæè¿ã¯ã¯ãã¹ãã¡ã¤ã³åé¡è§£æ±ºã®ããã«ããXMLãããªãã¦JSONã«ãã¦ããå¿ è¦ãããã®ã§ãJSONåã®æ¹æ³ãã¡ã¢ã ã¾ããã³ã³ããã¼ã©ã®ã¢ã¯ã·ã§ã³ã¡ã½ããã®ä¸ã«respond_toã¡ã½ããã®å¼ã³åºããããã®ã§ã以ä¸ã®ããã«jsã追å ããã respond_to do |format| format.html # index.html.erb format.js { render :js => @hoges } format.xml { render :xml => @hoges } end ã§ããã®å¾actionã«å¯¾å¿ããviewãä½ããviewã®ååã¯hoge
{{#tags}}- {{label}}
{{/tags}}