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

Version Path
zena-1.2.8 app/views/discussions/create.rjs
zena-1.2.7 app/views/discussions/create.rjs
zena-1.2.6 app/views/discussions/create.rjs
zena-1.2.5 app/views/discussions/create.rjs
zena-1.2.4 app/views/discussions/create.rjs
zena-1.2.3 app/views/discussions/create.rjs
zena-1.2.2 app/views/discussions/create.rjs
zena-1.2.1 app/views/discussions/create.rjs
zena-1.2.0 app/views/discussions/create.rjs
zena-1.1.3 app/views/discussions/create.rjs
zena-1.1.2 app/views/discussions/create.rjs
zena-1.1.1 app/views/discussions/create.rjs
zena-1.1.0 app/views/discussions/create.rjs
zena-1.0.0 app/views/discussions/create.rjs
zena-1.0.0.rc3 app/views/discussions/create.rjs
zena-1.0.0.rc2 app/views/discussions/create.rjs
zena-1.0.0.rc1 app/views/discussions/create.rjs
zena-1.0.0.beta3 app/views/discussions/create.rjs
zena-1.0.0.beta2 app/views/discussions/create.rjs
zena-1.0.0.beta1 app/views/discussions/create.rjs