[前][次][番号順一覧][スレッド一覧]

rails:3531

From: OZAWA Sakuro <sakuro@2...>
Date: Wed, 29 Dec 2010 10:34:12 +0900
Subject: [rails:3531] Re: ActionDispatchのrecourcesへのオプション指定の質問

class Something
  def to_param
    name
  end
end
として、find(params[:id]) のタグイは find_by_name(params[:id]) に変えることになるのかな。

-- 
OZAWA Sakuro

"I think we can agree, the past is over." - George W. Bush

--
ML: rails@r...
使い方: http://QuickML.com/

[前][次][番号順一覧][スレッド一覧]

      3523 2010-12-27 23:58 ["=?ISO-2022-JP?] ruby1.9.2p136+rails3.0                  
      3524 2010-12-28 01:17 ┗[rust.stnard@g...    ]                                       
      3525 2010-12-28 01:27  ┗[eiichi_maekawa@m... ]                                     
      3526 2010-12-28 05:23   ┗[eiichi_maekawa@m... ]                                   
      3527 2010-12-28 05:30    ┗[rust.stnard@g...    ]                                 
      3528 2010-12-28 06:01     ┣[eiichi_maekawa@m... ]                               
      3529 2010-12-28 17:24     ┃┗[inkm.yuki@g...      ] ActionDispatchのrecourcesへのオプション指定の質問
->    3531 2010-12-29 02:34     ┃ ┗[sakuro@2...         ]                           
      3532 2010-12-29 12:10     ┃  ┗[inkm.yuki@g...      ]                         
      3534 2011-01-06 07:54     ┗[eiichi_maekawa@m... ]