= form_for message, :url => user_messages_path(user), :html => {:class => "MainForm"} do |f| -if message.reply_to =f.hidden_field :to =f.hidden_field :parent_id -else %label{:for => 'message_to'} =:to.l %em= "(" + :type_a_username.l + ")" = text_field_tag 'message[to]', @message.to, {:autocomplete => "off", :size => 35, :id => "message_to"} .auto_complete#message_to_auto_complete = auto_complete_field 'message_to', {:url => auto_complete_for_username_user_messages_path(@user), :tokens=>','} -if @reply = f.hidden_field :subject -else %label{:for => 'message_subject'}= :subject.l + ":" = f.text_field :subject %label{:for => "message_body"}= :message.l + ":" = f.text_area :body %p = submit_tag :send.l