You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
I wonder if anyone could please tell me if will_paginate can support JSON out of the box or if this has to be hacked? I would like to add page data to the JSON responses while will_paginate manages pagination.
twitter stream APIã¨ã¯ãtwitterã®ã¹ãã¼ã¿ã¹æ´æ°ã«å¯¾ãã¦ãã¼ã¯ã¼ãã§trackããããããã°ã«ã¼ãå ã«å±ããã¹ãã¼ã¿ã¹æ´æ°ããã£ã«ã¿ãããåºæ¥ãAPIãªã®ã ãã©ãå®éã«ã¯chunkedãªã¹ããªã¼ã ãæµãã¦æ¥ã¦ããã®ã§ãã£ã¦ãããã使ã£ãWebã¢ããªãä½ãéã«ã¯long pollã使ãã®ãè¯ãããã ãã¯ã©ã¤ã¢ã³ããµã¤ãã§javascriptãå¦çããéã« ãµã¼ããµã¤ãã§ã¹ãã¼ã¿ã¹æ´æ°ãFIFOã«æºãè¾¼ã ã¯ã©ã¤ã¢ã³ããããªã¯ã¨ã¹ãããããã¯(long poll)ãFIFOããã¹ãã¼ã¿ã¹ãéåºãã ã¯ã©ã¤ã¢ã³ããµã¤ãã§long pollãè¡ãç»é¢ãæ´æ°ãã å度ãµã¼ãã¸ãªã¯ã¨ã¹ããæãã ãç¹°ãè¿ãã®ã§ããã°ããã£ããã¹ããªã¼ã ãªã®ã«ã¢ããªãµã¼ãã¨ã®æ¥ç¶ãåã£ã¦ãã¾ãäºã«ãªããåºæ¥ãã°ã¯ã©ã¤ã¢ã³ãããWebã¢ããªãã¹ããªã¼ãã³ã°ã¨ããããããããªãããµã¼ãããã®ã¹ãã¼ã¿
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
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}