Search

1. Filled activities attribute in standards table.
2. Able to search activities in autocomplete

## Migration steps
1. Run the command in project root path
    ruby ./scripts/import_new_standards.rb

2. Check autocomplete. If it works, then you can delete the standards_ori table.
Hound 大爆發 XD


2014-07-06 17:35 GMT+08:00 Hound <notifications@github.com>:

> In models/keywords.rb:
>
> > +                row = Company[keyword.type_id]
> > +                result[:value] = keyword.keyword
> > +                result[:type] = "公司行號"
> > +                result[:url] = url_helper.call('/company/'+
> row.taxid.to_s)
> > +            when "categories"
> > +                row = Category[keyword.type_id]
> > +                result[:value] = keyword.keyword
> > +                result[:type] = "營業登記項目"
> > +                result[:url] = url_helper.call('/result?cat[]='+row.id.to_s)
> > +            when "standards"
> > +                row = Standard[keyword.type_id]
> > +                result[:value] = keyword.keyword
> > +                result[:type] = "行業標準分類"
> > +                result[:url] = url_helper.call('/standard/'+row.id.to_s)
> > +            when "standards_activities"
> > +                row = Standard[keyword.type_id]
>
> Use 2 (not 4) spaces for indentation.
>
> —
>
> Reply to this email directly or view it on GitHub
> <https://github.com/g0v/tisa-map/pull/124/files#r14574566>.
>
>