railsrails3.1ç³»ã«ãªãã¨ã¾ã大ããå¤ããããã ãã©ï¼ç¹ã«JavaScriptå¨ãï¼ãä¸æ¦ã¾ã¨ãã¦ãããã routes.rb /:controller/:action/:id ã¯routes.rbã«è¨è¿°ãããªããªã£ããRESTã使ãã 代ããã«ä»¥ä¸ã®ã³ã¡ã³ããå¤ãã¨ã¬ã¬ã·ã¼ãªãã®ã使ããã match ':controller(/:action(/:id(.:format)))' routes.rbã®è¨è¿°å½¢å¼ã¯ä»ã«ãããããç°ãªãã Ruby on Rails Guides: Rails Routing from the Outside In findå¨ãArelã使ããªãfind(:all, ...)ç³»ã¯åºæ¬çã«ä½¿ããªãã ãã¹ã¦where(...)ãallã使ã£ãæ¹ãããã ãã ããfind(1) ã find_by_name('hoge') ã¿ãããªãã®ã¯ä»å¾ãæ¶ããªãã
{{#tags}}- {{label}}
{{/tags}}