Sha256: 4c8dbd904c2084b4ffb9f45c401fb2b718b4da65c8104e4910f37cd9a62c8650
Contents?: true
Size: 717 Bytes
Versions: 27
Compression:
Stored size: 717 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
27 entries across 27 versions & 2 rubygems