<%= t('message')+":" %>
<%= form_for @tie, :remote => true do |f| %> <%= f.hidden_field :receiver_id %> <%= f.hidden_field :sender_id %> <%= f.hidden_field :relation_name %> <% if @tie.relation!.granted %> <%= f.text_area :message, :class =>"input_new_tie" %> <% end %>
<%= submit_tag t('send', :scope => @tie.relation_name), :class => "tie_btn" %>
<% end %>