RailsCasts Pro episodes are now free!

Learn more or hide this

Wilson's Profile

GitHub User: wilsonfoz

Comments by Wilson


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 %>