2008-02-26

使用link_to_remote制作ajax时遇到的问题

关键字: link_to_remote, rjs
controller code: def delete_comment if request.delete? @comment = Comment.find params[:c_id] @comment.destroy blog = Blog.find params[:id] @comments = blog.comments(true) end end render code: <div id="comments"> <%= render :partial=>"comment ...
llleelay
搜索本博客
博客分类
最近加入圈子
最新评论