Displaying 1 result from an estimated 1 matches for "scenario_id".
2006 Apr 04
0
radio_button in a loop not working
...9;t know how to address this. Kind of newbie problem I think,
some help appreciated ;-)
In my controller:
(If no value found, I generate some values with defaults code so that
the table displays correctly:)
___________________
@scenario = Scenario.find(params[:id])
@valeurs=Valeur.find_all_by_scenario_id(params[:id], :order => "light_id
ASC")
if (@valeurs == nil) | (@valeurs.length == 0)
lights=Light.find_all
lights.each do |l|
@valeur = Valeur.new do |v|
v.light_id = l.id
v.scenario_id = params[:id]
v.intensite =...