Sha256: c9695dfae0a27a6a54468b3718cb6a958951f01bfd1d4e69a49bb679046df2fc

Contents?: true

Size: 521 Bytes

Versions: 13

Compression:

Stored size: 521 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)
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

13 entries across 13 versions & 1 rubygems

Version Path
zena-0.16.9 app/views/discussions/create.rjs
zena-0.16.8 app/views/discussions/create.rjs
zena-0.16.7 app/views/discussions/create.rjs
zena-0.16.6 app/views/discussions/create.rjs
zena-0.16.5 app/views/discussions/create.rjs
zena-0.16.4 app/views/discussions/create.rjs
zena-0.16.3 app/views/discussions/create.rjs
zena-0.16.2 app/views/discussions/create.rjs
zena-0.16.1 app/views/discussions/create.rjs
zena-0.16.0 app/views/discussions/create.rjs
zena-0.15.2 app/views/discussions/create.rjs
zena-0.15.1 app/views/discussions/create.rjs
zena-0.15.0 app/views/discussions/create.rjs