Ruby SHOES - Transation SQL GET/PUT

CREATE TABLE products (
id INT NOT NULL AUTO_INCREMENT,
name_prod VARCHAR(40),
cod_prod INT(14),
PRIMARY KEY (id)
);

----------- READ to put in drop_list ---------------
resultSet=client.query(“SELECT name_prod FROM products”)

resultSet.each do |row|
    #@nove.items =  [row['name_prod']]
	@nove = list_box :items => [row['name_prod']]
	@nove.move(260,170)
	
end

My problem is how to READ from element edit_line and WRITE in element list_box

In general I want to understand how to transfer the variables

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs