Sha256: e07ed62c52ec27c752823a44b0d694a7f07f87f650f155c8a7bfab43952d1751
Contents?: true
Size: 627 Bytes
Versions: 4
Compression:
Stored size: 627 Bytes
Contents
- class_name = commentable.class.name.underscore .comment{:style => "margin: 5px 0px 0px 0px"} = link_to avatar_for(current_user, :size => :small), user_path(current_user) = form_for(@comment, :remote => true) do |f| = hidden_field_tag "comment[commentable_id]", commentable.id = hidden_field_tag "comment[commentable_type]", class_name.classify = f.text_area :comment, :id => dom_id(@comment, :text) %div{:style => "padding:6px 0px 0px 40px;"} = f.submit t(:save_note) #{t :or} = link_to(t(:cancel), edit_comment_path("#{class_name}_id" => commentable, :cancel => true), :remote => true)
Version data entries
4 entries across 4 versions & 1 rubygems