% content_for :headers do %> <%= stylesheet_link_tag "addContact.css", :media => "screen, projection" %> <%= javascript_include_tag 'addContact'%> <% end %> <% toolbar :profile => @tie.receiver_subject, :option => 'contacts' %> <% content_for :javascript do %> $(document).ready(function() { defaultRelations = ["friend","acquaintance","public"] relation_name = "<%=@tie.relation.name%>"; $(".dropdown dt a span").html(relation_name); $('input[name$="tie[relation_name]"]').val(relation_name); }); <% end %>
<%= t('message.one') %>
<%= f.text_area :message, :class =>"new_tie_text_area" %>