Sha256: 8ad16e41c812975b4342ccdc55484b081488368058ad015cc776507ae2eb082e

Contents?: true

Size: 330 Bytes

Versions: 13

Compression:

Stored size: 330 Bytes

Contents

if @comment.errors.empty?
  page.visual_effect :highlight, "comment#{@comment[:id]}", :duration => 1.0
  page.replace "comment#{@comment[:id]}", :partial=>'comments/li', :collection => [@comment]
  page.replace_html "comment_errors", :inline=>""
else
  page.replace_html "comment_errors", :inline=>error_messages_for(@comment)
end

Version data entries

13 entries across 13 versions & 1 rubygems

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