respond_to do |wants| wants.html {render :partial=>"post", :object=>@post, :layout=>'posts'} wants.js {render :action=>"remote_show"} endAlthough this is pretty obvious if you reason about it, you may need some time to get it. And on the net there aren't easily accessible examples about it (or at least I found none).
It's just a dirty trick.
No comments:
Post a Comment