Another way to do it is like so:
just create a remote link:
link_to "edit", edit_ticket_path(ticket), class: "btn btn-mini", remote: true
Then in your views, add a edit.js.erb file:
$("#myModal").html("<%= j render 'new' %>");
$('#myModal').modal('show');
and change your new.html files to _new.html