RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: premjg
Site: http://adepto.in
Is there a plan to support mongoid?
Thanks for another very useful episode.
A small refactoring tip: I think inside the jQuery function you can use $(this) to reference the object.
// application.js $(function() { $("#book_author_tokens").tokenInput("/authors.json", { crossDomain: false, prePopulate: $(this).data("pre"), theme: "facebook" }); });
Is there a plan to support mongoid?
Thanks for another very useful episode.
A small refactoring tip: I think inside the jQuery function you can use $(this) to reference the object.
// application.js
$(function() {
$("#book_author_tokens").tokenInput("/authors.json", {
crossDomain: false,
prePopulate: $(this).data("pre"),
theme: "facebook"
});
});