Customize list from rails3-jquery-autocomplete
I have a hotel model and its attributes are:
id, hotel_name, address, searchable.
when I set searchable false for particular hotel then this hotel should
not come in dropdown when i type in search field.
Controller is
class HotelsController < Admin::BaseController
autocomplete :hotel, :hotel_name, :full => true
end
How can I optimize this
No comments:
Post a Comment