I’m using the acts_as_taggable gem (who’s site has gone AWOL
apparently) and I’m wanting to make it autocomplete. I, however, am
the absolute worst JavaScript person ever, so is there anyone out
there that can point me to a tutorial or give some good starting
points? Thanks!
I’m using the acts_as_taggable gem (who’s site has gone AWOL
apparently) and I’m wanting to make it autocomplete. I, however, am
the absolute worst JavaScript person ever, so is there anyone out
there that can point me to a tutorial or give some good starting
points? Thanks!
You need an implementation of auto_complete_for_object_tag_names in
your controller:
def auto_complete_for_party_tag_names @tags = Tag.find(:all, :conditions => [‘name LIKE ?’,
“#{params[:party][:tag_names]}%”])
render :inline => “<%= auto_complete_result(@tags, ‘name’) %>”,
:layout => false
end