This is a better fit for rails controller method conventions, paving the way to resourceful routing. Keep user-facing strings as 'delete' since that's more commonly used.
5 lines
246 B
Text
5 lines
246 B
Text
$("#inboxanchor").replaceWith("<%=j render :partial => "layouts/inbox" %>");
|
|
$("#inbox-count").replaceWith("<%=j render :partial => "message_count" %>");
|
|
$("#inbox-<%= @message.id %>").fadeOut(800, "linear", function () {
|
|
$(this).remove();
|
|
});
|