RailsCasts Pro episodes are now free!

Learn more or hide this

katryo's Profile

GitHub User: katryo

Site: http://d.hatena.ne.jp/katryo/

Comments by katryo

Avatar

Thank you, Ryan.
I got a syntax error with tokenInput and Rails 3.2.13, but fortunately fixed it by myself.
I guess that the new version of CoffeeScript compiler in Rails caused it.

What I got was

SyntaxError: unexpected INDENT

The solution is simple.
Just add "," after '/tags.json' in books.js.coffee.

books.js.coffee
$ -> 
  $('#book_author_tokens').tokenInput('/tags.json',
    theme: 'facebook'
    prePopulate: $('#book_author_tokens').data('load')
  )