RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: nekolus
Any solution on prepopulating the authors data in edit page. It's not working for me. I am using rails 4.2.8 version.
_form.html.erb <%= f.label :author_tokens, "Authors" %> <%= f.text_field :author_tokens, data: { load: "@book.authors" } %>
books.coffee jQuery -> $('#book_author_tokens').tokenInput '/authors.json' theme: 'facebook' prePopulate: $('#book_author_tokens').data('load')
Did you fix it?
I too have the same problem. any help
I am looking for a auto suggest, as a user types in. How do i do that?
Any solution on prepopulating the authors data in edit page. It's not working for me. I am using rails 4.2.8 version.
_form.html.erb
<%= f.label :author_tokens, "Authors" %>
<%= f.text_field :author_tokens, data: { load: "@book.authors" } %>
books.coffee
jQuery ->
$('#book_author_tokens').tokenInput '/authors.json'
theme: 'facebook'
prePopulate: $('#book_author_tokens').data('load')
Did you fix it?
I too have the same problem. any help
I am looking for a auto suggest, as a user types in. How do i do that?