app/views/meta/authors/create.js.erb
<% if @author.save %>
$(document).trigger('close.facebox');
$('#book_author_ids').prepend('<option value="<%= @author.id %>" selected="selected"><%= escape_javascript @author.full_name %></option>');
$("#book_author_ids").trigger("chosen:updated");
<% else %>
$('#facebox .content').html('<%= escape_javascript(render template: "meta/authors/new.html") %>');
$('#facebox form').data('remote','true');
<% end %>