Bryan, I have a situation where there is has_many :models, :through => :join_model relationship.
So, I have a Post model which has_many tags through tag_assignment a Tag model which has_many posts through tag_assignment and TagAssignment belongs to :post and :tag How can I have autocomplete field for tags in show and new / edit forms of Post? I am looking at 2 scenarios: 1. User picks up tags from the existing tag names 2. Enter new tag while creating / editing post and that tag gets added to the tag table also. As always your help is appreciated! Thanks, Bilal On Apr 7, 12:01 pm, Bilal Ahmed <[email protected]> wrote: > It works. Thanks a lot Bryan! > > On Apr 7, 11:25 am, Bryan Larsen <[email protected]> wrote: > > > > > > > > > limit should be in the attrs list. > > > I uploaded a current version of name-one-local > > tohttps://hobo.lighthouseapp.com/projects/8324-hobo/tickets/727-add-nam... > > > Bryan > > > On 11-04-07 02:01 PM, Bilal Ahmed wrote: > > > > Bryan, > > > > I have got an error "undefined method `limit' for #<#<Class: > > > 0x00000106ce71e0>:0x00000106cbaa78>" while using the client-side > > >autocompletefrom this > > >linkhttp://www.mail-archive.com/[email protected]/msg05953.html > > > > Thanks for your help. > > > > Regards, > > > Bilal > > > > On Feb 16, 10:59 am, Bryan Larsen<[email protected]> wrote: > > >> Hobo defaults to using a select-one input to display the select. You > > >> can override that in that one place or globally: > > > >> <extend tag="select-one"> > > >> <old-select-one limit="300" merge/> > > >> </extend> > > > >> As a rule of thumb, if I have more than 30 entries and less than a few > > >> thousand, I prefer to use a client-sideautocomplete. There's one > > >> here: > > >> http://www.mail-archive.com/[email protected]/msg05953.html > > > >> If there are more than a few thousand, I use a server sideautocomplete, > > >> aka name-one in Hobo. > > > >> cheers, > > >> Bryan > > > >> On 11-02-16 12:42 PM, Donald R. Ziesig wrote: > > > >>> Hi All! > > > >>> The US Postal Service has 200 different street types (ranging from Alley > > >>> to Wells). I have a table with all 200 names and official abbreviations > > >>> which has the following relationship: > > > >>> model property.rb > > > >>> belongs_to :street_type > > > >>> model street_type.rb > > > >>>has_many:properties > > > >>> ----- > > > >>> This went well until I try to add Woodbury RD. > > > >>> The drop down list for street_type goes from Alley to Lane (which > > >>> happens to be exactly the 1st through 100th entries in the table). I > > >>> can't see Streets, Roads, Places, or anything else in the 101st to 200th > > >>> entries which leaves the thing kinda useless. > > > >>> There are some obvious hacks to get this to work for now (order the list > > >>> with the most commonly used types at the beginning, for one) but > > >>> eventually, someone will reach the end of the line and start yelling at > > >>> me ;-) . > > > >>> Is there something I can change to allow the whole list to drop down? > > > >>> Thanks, > > > >>> Don Z -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
