search for: line_qty

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

2006 Apr 05
7
select_tag - populating options
Hello, I want to a select tag, where you can choose a number between 1 and 100. My inital code is based on the examples from Agile Web Development with Rails, and looks like this: view: <%= options = [["Select number of lines", ""]] + RfqLines::LINE_QTY select("rfq_line", "line_qty", options) %> model: LINE_QTY = select_fill def self.select_fill @filler = [] 1.upto(100) do |count| @filler << count end end Obviously it is not working, and I''m sure there is som...
2006 Apr 06
3
Inserting parent_id
...39;' redirect_to :action => ''list'' else render :action => ''new'' end end Here''s the template: <%= form_tag :action => ''create_lines'', :id => @project %> <table> <% while @count < @line_qty %> <tr> <td><%= text_field("line", "partno", "size" => 20) %></td> <td><%= text_field("line", "qty", "size" => 20) %></td> <td><%= text_field("li...