search for: stylearray

Displaying 2 results from an estimated 2 matches for "stylearray".

Did you mean: style_array
2013 Sep 02
1
Problem with Filling Tables.
...le Model class Style < ActiveRecord::Base has_many :beers def self.makeStyles beer = Hash[:name => "individual beer"] beerArray = [beer] style = Hash[:beers => beerArray, :name => "beer style", :description => "This is a beer style."] styleArray = [style] self.create_styles(styleArray) end def self.create_styles(list_styles) list_styles.each do |s| new_style = Style.create(name: s[:name], description: s[:description]) new_style.save list_styles[:beers].each do |b| new_style.beers.create(name: b[...
2006 May 16
0
in_place_editor with local autocomplete
..._editor( "style_lookup", { :url => url_for( :controller => "styles", :action => "style_jdetails" ), :script => true } ) %> <%= javascript_tag("new Autocompleter.Local( ''style_lookup'' , ''style_auto_complete'', styleArray, { fullSearch: true, frequency: 0, minChars: 1 });") %> The problem here is that in_place_editor creates an input tag with no id, so the Autocompleter can not find it. Even if I could get the in_place_editor to id the input, would the Autocompleter work since the input tag does not exi...