Sha256: ece37e1c07be10d6431535bc480fceb01bb80201ed7b96fae8f36450d57c3e4c

Contents?: true

Size: 351 Bytes

Versions: 20

Compression:

Stored size: 351 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, :object => @comment)
end

Version data entries

20 entries across 20 versions & 1 rubygems

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