Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
Wrap text
Report abuse
<%= pluralize(@article.comments_count, 'comment') %> <% cache do %> <%= render :partial => @comments %> <% remote_form_for :comment, :url => comment_article_path(@article), :html => {:id => "comment-form"} do |f| %> <%= render :partial => 'comment_form', :locals => {:f => f, :bt_name => 'comment'} %> <% end %> <%= render :partial => 'articles/comment_info' %> <%= observe_form "comment-form", :frequency => 1, :update => "live-preview", :complete => "Element.show('live-preview')", :url => { :action => "preview" } %> <% end %>
def preview render :layout => false respond_to |format| do format.js end end
Pasted May 17, 2008 7:26PM EDT
by celeretaudax
Channel #rubyonrails on irc.freenode.com
Embed
paste again
Ads from Ruby Row
<%= pluralize(@article.comments_count, 'comment') %>
<% cache do %>