search for: create_styles

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

2013 Sep 02
1
Problem with Filling Tables.
...veRecord::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[:name]) new_style.beers....
2007 Apr 11
5
WIN32OLE MS Word Help
Hi all, I am trying to create word document in ruby using WIN32OLE. as.. require ''win32ole'' word = WIN32OLE.new("Word.Application") word.visible = true word.documents.add selection = word.selection word.Selection.TypeText "This is some text." ... .. . Can we set header and footer to document? I want to generate a document such that its header contains an