RailsCasts Pro episodes are now free!

Learn more or hide this

Nekolus's Profile

GitHub User: nekolus

Comments by Nekolus

Avatar

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')

Avatar

Did you fix it?

I too have the same problem. any help

Avatar

I am looking for a auto suggest, as a user types in. How do i do that?