remote_fun
そういう場合、prototype.
1 <%= javascript_include_t ag "prototype" %> 2 <script language="JavaScript "> 3 function newArticle (){ 4 <%= remote_fun ction(:url => {:action => :new}, 5 :update => 'list', 6 :with => "Form.seria lize('article')" 7 ) %> 8 } 9 </script> 10
posted by
ysakaki
on Tue 19 Aug 2008
at 12:01