how do I create autocomplete that works exactly like how the tag开发者_JAVA技巧s work in here? (stackoverflow)?
There are autocomplete plug-ins but not ones where you can separate your tags by commas and do autocomplete for each tags.
You'd need Token Fields
http://railscasts.com/episodes/258-token-fields
Try the jquery autocomplete the back-end is done in PHP though you can convert it on rails
http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/
Here are some demos
http://jquery.bassistance.de/autocomplete/demo/
精彩评论