Sha256: d513c99648bfa13efe52c96ab264674084c880aefee3ef607bfc4131521196fc
Contents?: true
Size: 545 Bytes
Versions: 20
Compression:
Stored size: 545 Bytes
Contents
if !@discussion || @discussion.new_record? page.replace_html 'add_discussion_form', :partial=>'form' page.replace_html 'discussion_errors', :inline=> @errors ? render_errors : error_messages_for(:discussion, :object => @discussion) else new_discussion = @discussion @discussion = Discussion.new(:node_id=>@discussion[:node_id]) page.insert_html :before, 'add_discussion', :partial=>'li', :locals=>{:li=>new_discussion} page.replace_html 'discussion_errors', :inline=>'' page.replace_html 'add_discussion_form', :partial=>'form' end
Version data entries
20 entries across 20 versions & 1 rubygems