- ¥Ð¥Ã¥¯¥¢¥Ã¥×°ìÍ÷
- ¥½¡¼¥¹ ¤òɽ¼¨
- Ruby on Rails/gettext_scaffold¤Îconfirm_update ¤Ïºï½ü¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
- 1 (2007-05-16 (¿å) 10:58:00)
- 2 (2007-05-16 (¿å) 11:15:59)
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?