Hi Stefan,

Are you using Hobo 2.0 and Hobo Bootstrap? If yes, you can use Hobo
Bootstrap UI, which comes with a nice typeahead:

http://getbootstrap.com/2.3.2/javascript.html#typeahead

http://cookbook.hobocentral.net/tagdef/hobo_bootstrap_ui/hobo_bootstrap_ui/name-one-bootstrap

Warm regards,
Ignacio

El 09/12/13 00:05, Stefan Haslinger escribió:
> I have got some speed issues, yes: the app is running on production,
>  it"s the start of the deloment of a webshop.
> (The code is available under GPL
> here: https://github.com/informatom/mercator, but it's still in it's
> early days.)
> 
> Viewing an article is decent fast:
> Started GET "/admin/products/8533" for ... at 2013-12-08 23:04:27 +0100
> Processing by Admin::ProductsController#show as HTML
>   Parameters: {"id"=>"8533"}
>   Rendered controller: admin/products; dryml-tag: show-page (357.3ms)
> Completed 200 OK in 363.5ms (Views: 352.1ms | ActiveRecord: 7.3ms)
> 
> but when it comes to editing:
> Started GET
> "/admin/products/8533-sym-backup-exec-system-recovery-2010/edit?locale=de"
> for ... at 2013-12-08 23:05:21 +0100
> Processing by Admin::ProductsController#edit as HTML
>   Parameters: {"locale"=>"de",
> "id"=>"8533-sym-backup-exec-system-recovery-2010"}
>   Rendered controller: admin/products; dryml-tag: edit-page (64883.1ms)
> Completed 200 OK in 64892.2ms (Views: 64715.2ms | ActiveRecord: 171.5ms)
> 
> The speed issue comes from the drop down helpers for the relations, when
> I disable relations, everything gets back to normal again.
> I have 4 has_many relations, the drop downs show approx. 600 instance each.
> But I would prefer an autocomplete here anyways, as I don't want to
> scroll through 600 entries. 
> 
> I tried my luck with hjq-autocomplete according to another post here but
> that seems not to be available any more.
> So I have made a start to fix it like this ....
> 
>     <extend tag="select-many">
>       <old-select-many merge>
>         <select: replace>
>           <name-one: value=""
>     complete-target="&this_field_reflection.klass.new()"
>     completer="name_admin"/>
>         </select:>
>       </old-select-many>
>     </extend>
> 
> ... and indeed this way I have an autocomplete field, which allows me to
> search for one item and the submit creates the relation indeed.
> But I have to add them one by one, which is quite tedious. 
> 
> name-many seems also not available in this context (I don't get how to
> use it). I would be happy, if somebody has some idea to improve this hack.
> 
> Greetings,
> Stefan
> 
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Hobo Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/hobousers.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
Ignacio Huerta Arteche
http://www.ihuerta.net
Teléfono: 0034 645 70 77 35
Email realizado con software libre

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to