Sha256: 359c6146010ec147fb762aa8592020290dcb327a0c17e4a8864e1708632fc39c

Contents?: true

Size: 505 Bytes

Versions: 1

Compression:

Stored size: 505 Bytes

Contents

<% object._contact_id = current_subject.contact_to!(receiver).id %>
<% remote = true if remote.nil? %>

<%= form_for object, :remote => remote  do |f| %>
  <%= f.hidden_field :_contact_id %>

  <%= render :partial => object.class.to_s.tableize+'/fields' , :locals => {:f => f} %>	

  <% if current_subject != receiver %>
    <% receiver.activity_relations(current_subject, :from => :receiver).each do |r| %>
      <%= f.hidden_field "_relation_ids][", :value => r.id %>
    <% end %>
  <% end %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
social_stream-base-0.6.0 app/views/objects/_new.html.erb