app/views/message_requests/edit.html.erb in enju_message-0.3.4 vs app/views/message_requests/edit.html.erb in enju_message-0.4.0.beta.1
- old
+ new
@@ -5,15 +5,15 @@
<%= form_for(@message_request) do |f| -%>
<%= f.error_messages -%>
<div class="field">
<%= f.label t('message.sender') -%><br />
- <%= link_to @message_request.sender.username, @message_request.sender.profile -%>
+ <%= link_to @message_request.sender.username, @message_request.sender -%>
</div>
<div class="field">
<%= f.label t('message.receiver') -%><br />
- <%= link_to @message_request.receiver.username, @message_request.receiver.profile -%>
+ <%= link_to @message_request.receiver.username, @message_request.receiver -%>
</div>
<div class="field">
<%= f.label t('activerecord.models.message_template') -%><br />
<%= f.select(:message_template_id, @message_templates.collect{|m| [m.title, m.id]}) -%>
</div>
@@ -21,10 +21,10 @@
<%= f.label t('activerecord.attributes.message.subject') -%><br />
<%= @message_request.subject -%>
</div>
<div class="field">
<%= f.label t('activerecord.attributes.message.body') -%><br />
- <%= @message_request.body -%>
+ <%= textilize(@message_request.body) -%>
</div>
<div class="actions">
<%= f.submit %>
</div>
<%- end -%>