def confirm_update
   @card = Card.find(params[:id])
   @card.update_attributes(params[:card])
   if !@card.valid?
     render :action => 'edit'
   end
 end

update_attributes¤Ç¡¢³Îǧ²èÌ̤λþÅÀ¤Ç¡¢save¤·¤Á¤ã¤Ã¤Æ¤ë(´À

¼¡¤Î¤è¤¦¤Ë½¤Àµ

ºîÀ®Ãæ...

tag: Ruby on Rails?


¥È¥Ã¥×   ¿·µ¬ °ìÍ÷ ñ¸ì¸¡º÷ ºÇ½ª¹¹¿·   ¥Ø¥ë¥×   ºÇ½ª¹¹¿·¤ÎRSS

¥¢¡¼¥¯¥¦¥§¥Ö¤Î¥µ¡¼¥Ó¥¹¤ä¥½¥ê¥å¡¼¥·¥ç¥ó¤Ï¤³¤Á¤é