RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: wilsonfoz
Just a note...
To use token input with simple_form, the user have to adapt the command, like this (in this case I did not use the attribute 'name' - for more details see the post above):
<%= f.input :author_tokens, :label => "Author", :input_html => {"data-pre" => @book.authors.collect{|author| {:id => author.id, :name => author.nome}}).to_json %>
Just a note...
To use token input with simple_form, the user have to adapt the command, like this (in this case I did not use the attribute 'name' - for more details see the post above):