Displaying 1 result from an estimated 1 matches for "select_fill".
Did you mean:
select_field
2006 Apr 05
7
select_tag - populating options
...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 some easy way of
doing it..
Many thanks in advance,
/mich
--
Posted via http://www.ruby-forum.com/.