search for: style_brand_nam

Displaying 1 result from an estimated 1 matches for "style_brand_nam".

Did you mean: style_brand_name
2012 Apr 09
0
Autocomplete text-field version of dynamic select menu?
.../div> </fieldset> <% end %> and in styles.rb (model): belongs_to :brand def brand_name brand.try(:name) end def brand_name=(name) self.brand = Brand.find_or_create_by_name(name) if name.present? end and in styles.js.coffeescript: jQuery -> $(''#style_brand_name'').autocomplete source: $(''#style_brand_name'').data(''autocomplete-source'') -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JY...