and i want it to display each of the first_name records from the table
that @m is associated with in a drop-down. When i test this code the
only option in the drop down menu it #Player:0x3c88008> (Player is the
name of the table that @m is associated with) i know from previous
testing that everything works fine besides this code.
and i want it to display each of the first_name records from the table
that @m is associated with in a drop-down. When i test this code the
only option in the drop down menu it #Player:0x3c88008> (Player is the
name of the table that @m is associated with) i know from previous
testing that everything works fine besides this code.
There’s an optimization for this: collection_select
On Mon, Nov 19, 2012 at 10:12 PM, Walter Lee D. [email protected]wrote:
<%= f.select :name, [@m.each do |n|
that @m is associated with in a drop-down. When i test this code the
only option in the drop down menu it #Player:0x3c88008> (Player is the
name of the table that @m is associated with) i know from previous
testing that everything works fine besides this code.
There’s an optimization for this: collection_select