Sha256: b542e792139a086b68849499fbac86608157a30c991a277531e428163fcfd05a
Contents?: true
Size: 696 Bytes
Versions: 13
Compression:
Stored size: 696 Bytes
Contents
- class_name = commentable.class.name.downcase .comment#comment_edit{style: "margin: 5px 0px 0px 0px"} = link_to avatar_for(current_user, size: :small), user_path(current_user) #post = form_for(@comment, remote: true) do |f| = hidden_field_tag "comment[user_id]", current_user.id = hidden_field_tag "comment[commentable_id]", commentable.id = hidden_field_tag "comment[commentable_type]", class_name.capitalize = f.text_area :comment %div{style: "padding:6px 0px 0px 40px;"} = f.submit t :edit_note #{t :or} = link_to(t(:cancel), send("edit_#{class_name}_comment_url", commentable), method: :get, with: "'cancel=true'", remote: true)
Version data entries
13 entries across 13 versions & 1 rubygems