Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
def comment @comment = Podcast.find(params[:id]).comments.create(params[:comment]) @comment.user = current_user @comment.save flash[:commentsnotice] = "Successfully added your comment to the bottom." render :update do |page| page.insert_html :bottom, 'comments', " {This is where I put my html to show up at the bottom of the comments div} " end #redirect_to :action => "show", :id => params[:id] end
This paste will be private.
From the Design Piracy series on my blog: