Sha256: ad057200c89a96c821a681affad0fb37e4e315f894eab9ff52582e35ff0f4937
Contents?: true
Size: 605 Bytes
Versions: 19
Compression:
Stored size: 605 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) .buttons = f.submit t(:save_note) #{t :or} = link_to(t(:cancel), edit_comment_path(@comment, "#{class_name}_id" => commentable.id, :cancel => true), :remote => true)
Version data entries
19 entries across 19 versions & 2 rubygems