<%= div_for (conversation) do %>

<%= conversation.subject %>


Actions: <%= link_to ( image_tag('btn/btn_delete.png', :atl => "Delete", :title => "Delete"), mailbox_conversation_path(conversation, :location => 'conversation'), :confirm => 'Do you want to move "' + conversation.subject + '" to trash?', :method => :delete, :remote => true) %>
<% conversation.get_recipients.each do |recp| %> <%= link_to image_tag(recp.logo.url(:tie), :title=>recp.name, :alt => recp.name), recp.subject %> <% end %>
<% @mails.each do |mail| %>

<% message= mail.mailboxer_message %> <%= link_to image_tag(message.sender.logo.url(:tie),:alt => message.sender.name,:title =>message.sender.name), message.sender.subject %>
<%= message.sender.name %> on <%= message.created_at %> said:
<%= message.body %>

Debug:
Message.Id: <%= message.id %>
Mail.Id: <%= mail.id %>
Mail.Type: <%= mail.mailbox_type %>
Message.Sender: <%= message.sender.class.to_s %>/<%= message.sender.id.to_s %>

<% end %>

Write your answer:
<% form_tag mailbox_conversation_path(conversation.id), :method => :put do %>
<%= label_tag :body %>
<%= text_area_tag :body, nil,:rows =>6, :cols=> 53, :class => "required form_tag" %>
<%= submit_tag "Reply", :name => :reply_all,:class => "button" %>
<% end %> <% end %>